Skip to content

Commit

Permalink
go-bindata: adding modtime to go-bindata files
Browse files Browse the repository at this point in the history
Since files can be modifed or accidentally removed, git checkout doesn't
restore their timestamps, for that reason we should save go-bindata with
the timestamp hardcode or otherwise go-bindata check might complain
about different timestamps in the files generated files.

Signed-off-by: André Martins <andre@cilium.io>
  • Loading branch information
aanm authored and tgraf committed Mar 23, 2017
1 parent 8c22aaa commit d301d49
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 57 deletions.
6 changes: 3 additions & 3 deletions daemon/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ TARGET=cilium-agent
SOURCES := $(shell find ../api ../common ../daemon ../pkg . -name '*.go')
$(TARGET): $(SOURCES) check-bindata
go build $(GOBUILD) -ldflags "-X "github.com/cilium/cilium/common".Version=$(VERSION)" -o $(TARGET)
GO_BINDATA := go-bindata -prefix ../ -mode 0640 -ignore Makefile -ignore bpf_features.h \
-ignore lxc_config.h -ignore netdev_config.h -ignore node_config.h \
-ignore '.+\.o$$'
GO_BINDATA := go-bindata -prefix ../ -mode 0640 -modtime 1450269211 \
-ignore Makefile -ignore bpf_features.h -ignore lxc_config.h \
-ignore netdev_config.h -ignore node_config.h -ignore '.+\.o$$'

all: $(TARGET)

Expand Down

0 comments on commit d301d49

Please sign in to comment.