Skip to content

Commit

Permalink
fix: missing v2 in the makefile and goreleaser (#4622)
Browse files Browse the repository at this point in the history
  • Loading branch information
istae authored Mar 26, 2024
1 parent ee8fa15 commit 501f8a4
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 32 deletions.
50 changes: 25 additions & 25 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ builds:
- -trimpath
ldflags:
- -s -w
- -X github.com/ethersphere/bee.version={{ .Version }}
- -X github.com/ethersphere/bee.commitHash={{ .ShortCommit }}
- -X github.com/ethersphere/bee.commitTime={{ .CommitTimestamp }}
- -X github.com/ethersphere/bee/pkg/api.Version={{ .Env.BEE_API_VERSION }}
- -X github.com/ethersphere/bee/pkg/debugapi.Version={{ .Env.BEE_DEBUG_API_VERSION }}
- -X github.com/ethersphere/bee/v2.version={{ .Version }}
- -X github.com/ethersphere/bee/v2.commitHash={{ .ShortCommit }}
- -X github.com/ethersphere/bee/v2.commitTime={{ .CommitTimestamp }}
- -X github.com/ethersphere/bee/v2/pkg/api.Version={{ .Env.BEE_API_VERSION }}
- -X github.com/ethersphere/bee/v2/pkg/debugapi.Version={{ .Env.BEE_DEBUG_API_VERSION }}
env:
- CGO_ENABLED=0
goos:
Expand All @@ -39,11 +39,11 @@ builds:
- -trimpath
ldflags:
- -s -w
- -X github.com/ethersphere/bee.version={{ .Version }}
- -X github.com/ethersphere/bee.commitHash={{ .ShortCommit }}
- -X github.com/ethersphere/bee.commitTime={{ .CommitTimestamp }}
- -X github.com/ethersphere/bee/pkg/api.Version={{ .Env.BEE_API_VERSION }}
- -X github.com/ethersphere/bee/pkg/debugapi.Version={{ .Env.BEE_DEBUG_API_VERSION }}
- -X github.com/ethersphere/bee/v2.version={{ .Version }}
- -X github.com/ethersphere/bee/v2.commitHash={{ .ShortCommit }}
- -X github.com/ethersphere/bee/v2.commitTime={{ .CommitTimestamp }}
- -X github.com/ethersphere/bee/v2/pkg/api.Version={{ .Env.BEE_API_VERSION }}
- -X github.com/ethersphere/bee/v2/pkg/debugapi.Version={{ .Env.BEE_DEBUG_API_VERSION }}
env:
- CGO_ENABLED=0
goos:
Expand All @@ -65,11 +65,11 @@ builds:
- -trimpath
ldflags:
- -s -w
- -X github.com/ethersphere/bee.version={{ .Version }}
- -X github.com/ethersphere/bee.commitHash={{ .ShortCommit }}
- -X github.com/ethersphere/bee.commitTime={{ .CommitTimestamp }}
- -X github.com/ethersphere/bee/pkg/api.Version={{ .Env.BEE_API_VERSION }}
- -X github.com/ethersphere/bee/pkg/debugapi.Version={{ .Env.BEE_DEBUG_API_VERSION }}
- -X github.com/ethersphere/bee/v2.version={{ .Version }}
- -X github.com/ethersphere/bee/v2.commitHash={{ .ShortCommit }}
- -X github.com/ethersphere/bee/v2.commitTime={{ .CommitTimestamp }}
- -X github.com/ethersphere/bee/v2/pkg/api.Version={{ .Env.BEE_API_VERSION }}
- -X github.com/ethersphere/bee/v2/pkg/debugapi.Version={{ .Env.BEE_DEBUG_API_VERSION }}
env:
- CGO_ENABLED=0
goos:
Expand All @@ -85,11 +85,11 @@ builds:
- -trimpath
ldflags:
- -s -w
- -X github.com/ethersphere/bee.version={{ .Version }}
- -X github.com/ethersphere/bee.commitHash={{ .ShortCommit }}
- -X github.com/ethersphere/bee.commitTime={{ .CommitTimestamp }}
- -X github.com/ethersphere/bee/pkg/api.Version={{ .Env.BEE_API_VERSION }}
- -X github.com/ethersphere/bee/pkg/debugapi.Version={{ .Env.BEE_DEBUG_API_VERSION }}
- -X github.com/ethersphere/bee/v2.version={{ .Version }}
- -X github.com/ethersphere/bee/v2.commitHash={{ .ShortCommit }}
- -X github.com/ethersphere/bee/v2.commitTime={{ .CommitTimestamp }}
- -X github.com/ethersphere/bee/v2/pkg/api.Version={{ .Env.BEE_API_VERSION }}
- -X github.com/ethersphere/bee/v2/pkg/debugapi.Version={{ .Env.BEE_DEBUG_API_VERSION }}
env:
- CGO_ENABLED=0
goos:
Expand All @@ -104,11 +104,11 @@ builds:
- -trimpath
ldflags:
- -s -w
- -X github.com/ethersphere/bee.version={{ .Version }}
- -X github.com/ethersphere/bee.commitHash={{ .ShortCommit }}
- -X github.com/ethersphere/bee.commitTime={{ .CommitTimestamp }}
- -X github.com/ethersphere/bee/pkg/api.Version={{ .Env.BEE_API_VERSION }}
- -X github.com/ethersphere/bee/pkg/debugapi.Version={{ .Env.BEE_DEBUG_API_VERSION }}
- -X github.com/ethersphere/bee/v2.version={{ .Version }}
- -X github.com/ethersphere/bee/v2.commitHash={{ .ShortCommit }}
- -X github.com/ethersphere/bee/v2.commitTime={{ .CommitTimestamp }}
- -X github.com/ethersphere/bee/v2/pkg/api.Version={{ .Env.BEE_API_VERSION }}
- -X github.com/ethersphere/bee/v2/pkg/debugapi.Version={{ .Env.BEE_DEBUG_API_VERSION }}
env:
- CGO_ENABLED=0
goos:
Expand Down
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ COMMIT_HASH ?= "$(shell git describe --long --dirty --always --match "" || true)
CLEAN_COMMIT ?= "$(shell git describe --long --always --match "" || true)"
COMMIT_TIME ?= "$(shell git show -s --format=%ct $(CLEAN_COMMIT) || true)"
LDFLAGS ?= -s -w \
-X github.com/ethersphere/bee.version="$(VERSION)" \
-X github.com/ethersphere/bee.commitHash="$(COMMIT_HASH)" \
-X github.com/ethersphere/bee.commitTime="$(COMMIT_TIME)" \
-X github.com/ethersphere/bee/pkg/api.Version="$(BEE_API_VERSION)" \
-X github.com/ethersphere/bee/pkg/api.DebugVersion="$(BEE_DEBUG_API_VERSION)" \
-X github.com/ethersphere/bee/pkg/p2p/libp2p.reachabilityOverridePublic="$(REACHABILITY_OVERRIDE_PUBLIC)" \
-X github.com/ethersphere/bee/pkg/postage/listener.batchFactorOverridePublic="$(BATCHFACTOR_OVERRIDE_PUBLIC)"
-X github.com/ethersphere/bee/v2.version="$(VERSION)" \
-X github.com/ethersphere/bee/v2.commitHash="$(COMMIT_HASH)" \
-X github.com/ethersphere/bee/v2.commitTime="$(COMMIT_TIME)" \
-X github.com/ethersphere/bee/v2/pkg/api.Version="$(BEE_API_VERSION)" \
-X github.com/ethersphere/bee/v2/pkg/api.DebugVersion="$(BEE_DEBUG_API_VERSION)" \
-X github.com/ethersphere/bee/v2/pkg/p2p/libp2p.reachabilityOverridePublic="$(REACHABILITY_OVERRIDE_PUBLIC)" \
-X github.com/ethersphere/bee/v2/pkg/postage/listener.batchFactorOverridePublic="$(BATCHFACTOR_OVERRIDE_PUBLIC)"

.PHONY: all
all: build lint test-race binary
Expand Down

0 comments on commit 501f8a4

Please sign in to comment.