Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Local Path Provisioner
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Local Path Provisioner
Commits
851be783
Commit
851be783
authored
Sep 27, 2019
by
Darren Shepherd
Committed by
Sheng Yang
Sep 27, 2019
Browse files
Options
Downloads
Patches
Plain Diff
Fix VERSION symbol
parent
5e6b0605
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/build
+2
-3
2 additions, 3 deletions
scripts/build
with
2 additions
and
3 deletions
scripts/build
+
2
−
3
View file @
851be783
...
...
@@ -7,10 +7,9 @@ cd $(dirname $0)/..
mkdir
-
p
bin
if
[
"
$(uname)
"
=
"
Linux
"
];
then
OTHER_LINKFLAGS
=
"
-extldflags -static -s
"
OTHER_LINKFLAGS
=
"
-extldflags -static -s
-w
"
fi
LINKFLAGS
=
"
-X github.com/rancher/local-path-provisioner.Version=$VERSION
"
LINKFLAGS
=
"
-X github.com/rancher/local-path-provisioner.GitCommit=$COMMIT $LINKFLAGS
"
LINKFLAGS
=
"
-X main.VERSION=$VERSION
"
CGO_ENABLED
=
0
go
build
-
ldflags
"
$LINKFLAGS $OTHER_LINKFLAGS
"
-
o
bin
/
local
-
path
-
provisioner
if
[
"
$CROSS
"
=
"
true
"
]
&&
[
"
$ARCH
"
=
"
amd64
"
];
then
GOOS
=
darwin
go
build
-
ldflags
"
$LINKFLAGS
"
-
o
bin
/
local
-
path
-
provisioner
-
darwin
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment