diff options
author | Vincent Demeester <vdemeest@redhat.com> | 2018-12-11 15:26:01 +0100 |
---|---|---|
committer | Vincent Demeester <vdemeest@redhat.com> | 2018-12-11 15:26:01 +0100 |
commit | 0b0096382c8346d463ce019714fcc46256bc4af3 (patch) | |
tree | ad650a1b81396bd2c95513727f58f4b9e2a5e667 | |
parent | 132fc26929961d472073455d0a1355661801dc52 (diff) | |
download | podman-0b0096382c8346d463ce019714fcc46256bc4af3.tar.gz podman-0b0096382c8346d463ce019714fcc46256bc4af3.tar.bz2 podman-0b0096382c8346d463ce019714fcc46256bc4af3.zip |
No need to use `-i` in go build (with go 1.10 and above)
> The go build command now maintains a cache of recently built
packages, separate from the installed packages in $GOROOT/pkg or
$GOPATH/pkg. The effect of the cache should be to speed builds that
do not explicitly install packages or when switching between
different copies of source code (for example, when changing back and
forth between different branches in a version control system). The
old advice to add the -i flag for speed, as in go build -i or go
test -i, is no longer necessary: builds run just as fast without -i.
This should also fix podman builds for NixOS, snap-installed go, …
Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -108,7 +108,7 @@ test/goecho/goecho: .gopathok $(wildcard test/goecho/*.go) $(GO) build -ldflags '$(LDFLAGS)' -o $@ $(PROJECT)/test/goecho podman: .gopathok $(PODMAN_VARLINK_DEPENDENCIES) - $(GO) build -i -ldflags '$(LDFLAGS_PODMAN)' -tags "$(BUILDTAGS)" -o bin/$@ $(PROJECT)/cmd/podman + $(GO) build -ldflags '$(LDFLAGS_PODMAN)' -tags "$(BUILDTAGS)" -o bin/$@ $(PROJECT)/cmd/podman local-cross: $(CROSS_BUILD_TARGETS) @@ -116,7 +116,7 @@ bin/podman.cross.%: .gopathok TARGET="$*"; \ GOOS="$${TARGET%%.*}" \ GOARCH="$${TARGET##*.}" \ - $(GO) build -i -ldflags '$(LDFLAGS_PODMAN)' -tags '$(BUILDTAGS_CROSS)' -o "$@" $(PROJECT)/cmd/podman + $(GO) build -ldflags '$(LDFLAGS_PODMAN)' -tags '$(BUILDTAGS_CROSS)' -o "$@" $(PROJECT)/cmd/podman python: ifdef HAS_PYTHON3 |