Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
1127d5c0
Unverified
Commit
1127d5c0
authored
Jan 10, 2017
by
Jordan Liggitt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run bindata generation from KUBE_ROOT
Avoid path differences when running via go:generate and invoking directly
parent
00d26fcf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
generate-bindata.sh
hack/generate-bindata.sh
+14
-9
No files found.
hack/generate-bindata.sh
View file @
1127d5c0
...
...
@@ -38,14 +38,17 @@ if ! which go-bindata &>/dev/null ; then
exit
5
fi
# run the generation from the root directory for stable output
pushd
"
${
KUBE_ROOT
}
"
# These are files for e2e tests.
BINDATA_OUTPUT
=
"
${
KUBE_ROOT
}
/
test/e2e/generated/bindata.go"
go-bindata
-nometadata
-
prefix
"
${
KUBE_ROOT
}
"
-
o
"
${
BINDATA_OUTPUT
}
.tmp"
-pkg
generated
\
BINDATA_OUTPUT
=
"test/e2e/generated/bindata.go"
go-bindata
-nometadata
-o
"
${
BINDATA_OUTPUT
}
.tmp"
-pkg
generated
\
-ignore
.jpg
-ignore
.png
-ignore
.md
\
"
${
KUBE_ROOT
}
/
examples/..."
\
"
${
KUBE_ROOT
}
/
test/e2e/testing-manifests/..."
\
"
${
KUBE_ROOT
}
/
test/images/..."
\
"
${
KUBE_ROOT
}
/
test/fixtures/..."
"examples/..."
\
"test/e2e/testing-manifests/..."
\
"test/images/..."
\
"test/fixtures/..."
gofmt
-s
-w
"
${
BINDATA_OUTPUT
}
.tmp"
...
...
@@ -62,10 +65,10 @@ fi
rm
-f
"
${
BINDATA_OUTPUT
}
.tmp"
# These are files for runtime code
BINDATA_OUTPUT
=
"
${
KUBE_ROOT
}
/
pkg/generated/bindata.go"
go-bindata
-nometadata
-nocompress
-
prefix
"
${
KUBE_ROOT
}
"
-
o
"
${
BINDATA_OUTPUT
}
.tmp"
-pkg
generated
\
BINDATA_OUTPUT
=
"pkg/generated/bindata.go"
go-bindata
-nometadata
-nocompress
-o
"
${
BINDATA_OUTPUT
}
.tmp"
-pkg
generated
\
-ignore
.jpg
-ignore
.png
-ignore
.md
\
"
${
KUBE_ROOT
}
/
translations/..."
"translations/..."
gofmt
-s
-w
"
${
BINDATA_OUTPUT
}
.tmp"
...
...
@@ -80,3 +83,5 @@ else
fi
rm
-f
"
${
BINDATA_OUTPUT
}
.tmp"
popd
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment