Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
ceea5994
Unverified
Commit
ceea5994
authored
Jan 22, 2024
by
Daniel Hiltgen
Committed by
GitHub
Jan 22, 2024
Browse files
Merge pull request #2150 from dhiltgen/default_version
Set a default version using git describe
parents
0759d899
3005ec74
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
scripts/build_darwin.sh
scripts/build_darwin.sh
+1
-1
scripts/build_docker.sh
scripts/build_docker.sh
+1
-1
scripts/build_linux.sh
scripts/build_linux.sh
+1
-1
No files found.
scripts/build_darwin.sh
View file @
ceea5994
...
...
@@ -2,7 +2,7 @@
set
-e
export
VERSION
=
${
VERSION
:-
0
.0.0
}
export
VERSION
=
${
VERSION
:-
$(
git describe
--tags
--first-parent
--abbrev
=
7
--long
--dirty
--always
|
sed
-e
"s/^v//g"
)
}
export
GOFLAGS
=
"'-ldflags=-w -s
\"
-X=github.com/jmorganca/ollama/version.Version=
$VERSION
\"
\"
-X=github.com/jmorganca/ollama/server.mode=release
\"
'"
mkdir
-p
dist
...
...
scripts/build_docker.sh
View file @
ceea5994
...
...
@@ -2,7 +2,7 @@
set
-eu
export
VERSION
=
${
VERSION
:-
0
.0.0
}
export
VERSION
=
${
VERSION
:-
$(
git describe
--tags
--first-parent
--abbrev
=
7
--long
--dirty
--always
|
sed
-e
"s/^v//g"
)
}
export
GOFLAGS
=
"'-ldflags=-w -s
\"
-X=github.com/jmorganca/ollama/version.Version=
$VERSION
\"
\"
-X=github.com/jmorganca/ollama/server.mode=release
\"
'"
docker build
\
...
...
scripts/build_linux.sh
View file @
ceea5994
...
...
@@ -2,7 +2,7 @@
set
-eu
export
VERSION
=
${
VERSION
:-
0
.0.0
}
export
VERSION
=
${
VERSION
:-
$(
git describe
--tags
--first-parent
--abbrev
=
7
--long
--dirty
--always
|
sed
-e
"s/^v//g"
)
}
export
GOFLAGS
=
"'-ldflags=-w -s
\"
-X=github.com/jmorganca/ollama/version.Version=
$VERSION
\"
\"
-X=github.com/jmorganca/ollama/server.mode=release
\"
'"
BUILD_ARCH
=
${
BUILD_ARCH
:-
"amd64 arm64"
}
...
...
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