Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nexus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
flg_projects
nexus_vdi
nexus
Commits
27c79e5b
Commit
27c79e5b
authored
1 month ago
by
Florent Gluck
Browse files
Options
Downloads
Patches
Plain Diff
Fixed inconsistencies in nexus-exam, notably buildversion
parent
5de7522c
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
nexus-exam/Makefile
+3
-6
3 additions, 6 deletions
nexus-exam/Makefile
nexus-exam/buildversion/version.go
+15
-0
15 additions, 0 deletions
nexus-exam/buildversion/version.go
nexus-exam/go.mod
+1
-1
1 addition, 1 deletion
nexus-exam/go.mod
nexus-exam/nexus-exam.go
+1
-1
1 addition, 1 deletion
nexus-exam/nexus-exam.go
with
20 additions
and
8 deletions
nexus-exam/Makefile
+
3
−
6
View file @
27c79e5b
# ------------------------------------
# Common variables
# ------------------------------------
CURRENT_DATE
=
$(
shell
eval
"date -u +'%Y-%m-%d at %H:%M:%S'"
)
GIT_COMMIT
=
$(
shell
eval
"git rev-parse HEAD"
)
BUILD_FLAGS
=
-ldflags
=
"-X 'gitedu.hesge.ch/flg_projects/nexus_vdi/nexus/
common
/buildversion.buildDate=
$(
CURRENT_DATE
)
' -X 'gitedu.hesge.ch/flg_projects/nexus_vdi/nexus/
common
/buildversion.gitCommit=
$(
GIT_COMMIT
)
'"
BUILD_FLAGS
=
-ldflags
=
"-X 'gitedu.hesge.ch/flg_projects/nexus_vdi/nexus/
nexus-exam
/buildversion.buildDate=
$(
CURRENT_DATE
)
' -X 'gitedu.hesge.ch/flg_projects/nexus_vdi/nexus/
nexus-exam
/buildversion.gitCommit=
$(
GIT_COMMIT
)
'"
BUILD_DIR
=
build
BUILD_DIR_ABS
=
$(
PWD
)
/
$(
BUILD_DIR
)
NEXUSH_BINARY
=
nexush
...
...
@@ -11,7 +8,7 @@ NEXUSCLI_BINARY=nexus-cli
NEXUS_EXAM_BINARY
=
nexus-exam
GENPWD_BINARY
=
genpwd
BUILD_
CLIENT_
FLAGS
=
-buildvcs
=
false
BUILD_FLAGS
+
=
-buildvcs
=
false
# To force a full recompile:
# BUILD_FLAGS=build -a
...
...
@@ -62,7 +59,7 @@ $(BUILD_DIR): check_server_var check_nexus_exam_vars
@
echo
-n
'
$(
value EXAM_PWD
)
'
>
$(
NEXUS_EXAM_PWD_CREDS_FILE
)
@
echo
"OK"
@
echo
"[Building nexus-exam into
$(
BUILD_DIR
)
directory]"
go build
$(
BUILD_FLAGS
)
$(
BUILD_CLIENT_FLAGS
)
-o
$(
BUILD_DIR
)
/
$(
NEXUS_EXAM_BINARY
)
go build
$(
BUILD_FLAGS
)
-o
$(
BUILD_DIR
)
/
$(
NEXUS_EXAM_BINARY
)
@
strip
-s
$(
BUILD_DIR
)
/
$(
NEXUS_EXAM_BINARY
)
@
echo
"OK"
# @upx -q $(NEXUS_EXAM_BINARY)
...
...
This diff is collapsed.
Click to expand it.
nexus-exam/buildversion/version.go
0 → 100644
+
15
−
0
View file @
27c79e5b
package
buildversion
var
(
// These variables are replaced by ldflags at build time
gitCommit
=
"n/a"
buildDate
=
"n/a"
)
func
GitCommit
()
string
{
return
gitCommit
}
func
BuildDate
()
string
{
return
buildDate
}
This diff is collapsed.
Click to expand it.
nexus-exam/go.mod
+
1
−
1
View file @
27c79e5b
...
...
@@ -5,12 +5,12 @@ go 1.22.2
require (
fyne.io/fyne/v2 v2.5.5
gitedu.hesge.ch/flg_projects/nexus_vdi/nexus/client v0.0.0-20250320135605-9ac7ec3df57a
gitedu.hesge.ch/flg_projects/nexus_vdi/nexus/common v0.0.0-20250320135605-9ac7ec3df57a
gitedu.hesge.ch/flg_projects/nexus_vdi/nexus/libclient v0.0.0-20250320133059-1f3e69fbd8f8
)
require (
fyne.io/systray v1.11.0 // indirect
gitedu.hesge.ch/flg_projects/nexus_vdi/nexus/common v0.0.0-20250320135605-9ac7ec3df57a // indirect
github.com/BurntSushi/toml v1.4.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/fredbi/uri v1.1.0 // indirect
...
...
This diff is collapsed.
Click to expand it.
nexus-exam/nexus-exam.go
+
1
−
1
View file @
27c79e5b
...
...
@@ -15,9 +15,9 @@ import (
"fyne.io/fyne/v2/theme"
"fyne.io/fyne/v2/widget"
u
"gitedu.hesge.ch/flg_projects/nexus_vdi/nexus/client/utils"
"gitedu.hesge.ch/flg_projects/nexus_vdi/nexus/common/buildversion"
nc
"gitedu.hesge.ch/flg_projects/nexus_vdi/nexus/libclient/nexusclient"
"gitedu.hesge.ch/flg_projects/nexus_vdi/nexus/libclient/version"
"gitedu.hesge.ch/flg_projects/nexus_vdi/nexus/nexus-exam/buildversion"
)
const
(
...
...
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