Skip to content

Commit

Permalink
Merge pull request #697 from Mirantis/jell/bindata
Browse files Browse the repository at this point in the history
Force go-bindata to use particular file mode
  • Loading branch information
lukaszo authored Jun 19, 2018
2 parents 5e85afa + a40c11f commit 9908673
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/cmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ function get_ldflags {
function build_internal {
# we don't just always generate the bindata right there because we
# want to keep the source buildable outside this build container.
go-bindata -o /tmp/bindata.go -modtime "${bindata_modtime}" -pkg "${bindata_pkg}" "${bindata_dir}"
go-bindata -mode 0644 -o /tmp/bindata.go -modtime "${bindata_modtime}" -pkg "${bindata_pkg}" "${bindata_dir}"
if ! cmp /tmp/bindata.go "${bindata_out}"; then
echo >&2 "${bindata_dir} changed, please re-run ${0} update-bindata"
exit 1
Expand Down Expand Up @@ -485,7 +485,7 @@ function e2e {
function update_bindata_internal {
# set fixed modtime to avoid unwanted differences during the checks
# that are done by build/cmd.sh build
go-bindata -modtime "${bindata_modtime}" -o "${bindata_out}" -pkg "${bindata_pkg}" "${bindata_dir}"
go-bindata -mode 0644 -modtime "${bindata_modtime}" -o "${bindata_out}" -pkg "${bindata_pkg}" "${bindata_dir}"
}

function update_docs_internal {
Expand Down

0 comments on commit 9908673

Please sign in to comment.