Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mybee
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
mybee
Commits
d97c1a20
Unverified
Commit
d97c1a20
authored
Jul 02, 2021
by
Peter Mrekaj
Committed by
GitHub
Jul 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: commit hash for bee version (#2285)
parent
48d21c4a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
.goreleaser.yml
.goreleaser.yml
+1
-1
Makefile
Makefile
+2
-2
No files found.
.goreleaser.yml
View file @
d97c1a20
...
...
@@ -11,7 +11,7 @@ builds:
-
-v
-
-trimpath
ldflags
:
-
-s -w -X github.com/ethersphere/bee.version={{.Version}} -X github.com/ethersphere/bee.commit={{.ShortCommit}} -X github.com/ethersphere/bee.commitTime={{.CommitTimestamp}}
-
-s -w -X github.com/ethersphere/bee.version={{.Version}} -X github.com/ethersphere/bee.commit
Hash
={{.ShortCommit}} -X github.com/ethersphere/bee.commitTime={{.CommitTimestamp}}
env
:
-
CGO_ENABLED=0
goos
:
...
...
Makefile
View file @
d97c1a20
...
...
@@ -9,10 +9,10 @@ BEEKEEPER_CLUSTER ?= local
BEELOCAL_BRANCH
?=
main
BEEKEEPER_BRANCH
?=
master
COMMIT
?=
"
$(
shell
git describe --long --dirty --always --match "" || true
)
"
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.commit
=
"
$(COMMIT
)
"
-X
github.com/ethersphere/bee.commitTime
=
"
$(COMMIT_TIME)
"
LDFLAGS
?=
-s
-w
-X
github.com/ethersphere/bee.commit
Hash
=
"
$(COMMIT_HASH
)
"
-X
github.com/ethersphere/bee.commitTime
=
"
$(COMMIT_TIME)
"
.PHONY
:
all
all
:
build lint vet test-race binary
...
...
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