Skip to content

Commit

Permalink
Fix SPN build
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaavi committed Jan 13, 2025
1 parent ef7b129 commit 96209c2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
5 changes: 5 additions & 0 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ build:
# ./dist/all/assets.zip
BUILD +assets

build-spn:
BUILD +go-build --CMDS="hub" --GOOS="linux" --GOARCH="amd64"
BUILD +go-build --CMDS="hub" --GOOS="linux" --GOARCH="arm64"
# TODO: Add other platforms

go-ci:
BUILD +go-build --GOOS="linux" --GOARCH="amd64"
BUILD +go-build --GOOS="linux" --GOARCH="arm64"
Expand Down
1 change: 1 addition & 0 deletions base/info/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ func Set(setName string, setVersion string, setLicenseName string) {

if setVersion != "" {
version = setVersion
versionNumber = setVersion
}
}

Expand Down
10 changes: 5 additions & 5 deletions cmds/hub/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func main() {
flag.Parse()

// Set name and license.
info.Set("SPN Hub", "", "GPLv3")
info.Set("SPN Hub", "0.7.8", "GPLv3")

// Configure metrics.
_ = metrics.SetNamespace("hub")
Expand All @@ -45,10 +45,6 @@ func main() {
// Set SPN public hub mode.
conf.EnablePublicHub(true)

// Set default log level.
log.SetLogLevel(log.WarningLevel)
_ = log.Start()

// Create instance.
var execCmdLine bool
instance, err := spn.New()
Expand Down Expand Up @@ -79,6 +75,10 @@ func main() {
os.Exit(0)
}

// Set default log level.
log.SetLogLevel(log.WarningLevel)
_ = log.Start()

// Start
go func() {
err = instance.Start()
Expand Down
6 changes: 3 additions & 3 deletions spn/testing/simple/reset-databases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

cd "$( dirname "${BASH_SOURCE[0]}" )"

rm -rf data/me/*
rm -rf data/shared/*
rm -rf data/hub*/databases
rm -rf testdata/me/*
rm -rf testdata/shared/*
rm -rf testdata/hub*/databases

0 comments on commit 96209c2

Please sign in to comment.