fix(build): stamp installtype.buildType on every dev-build command
task build already stamped archied, archie-gateway and archie-agent with installtype.buildType=binary, but archie-state-store, archie-ui and archie-messaging were built unstamped. A binary built by task build is then permanently un-updatable: releaseupdate.Service.Install refuses on installtype.Unknown. Add the same stamp to the three missing go build commands and pin the contract with a root-level deployment test that fails when any go build line under the build task's cmds targets ./cmd/<name> without the stamp, naming the offending command.
This commit is contained in:
1 parent
979afee85f
commit
6b31fd1964
2 files changed
+34
-3
No files matched your search
+3
-3
@@ -453,9 +453,9 @@ tasks:
|
||||
cmds:
|
||||
- go build -ldflags "-X github.com/samcharles93/archie-core/internal/app/archied.gatewayVersion={{.GATEWAY_VERSION}} -X github.com/samcharles93/archie-core/internal/app/archied.runtimeVersion={{.RUNTIME_VERSION}} -X github.com/samcharles93/archie-core/internal/installtype.buildType=binary" -o {{.BIN_DIR}}/archied ./cmd/archied
|
||||
- go build -ldflags "-X github.com/samcharles93/archie-core/internal/app/archied.gatewayVersion={{.GATEWAY_VERSION}} -X github.com/samcharles93/archie-core/internal/installtype.buildType=binary" -o {{.BIN_DIR}}/archie-gateway ./cmd/archie-gateway
|
||||
- go build -o {{.BIN_DIR}}/archie-state-store ./cmd/archie-state-store
|
||||
- go build -o {{.BIN_DIR}}/archie-ui ./cmd/archie-ui
|
||||
- go build -o {{.BIN_DIR}}/archie-messaging ./cmd/archie-messaging
|
||||
- go build -ldflags "-X github.com/samcharles93/archie-core/internal/installtype.buildType=binary" -o {{.BIN_DIR}}/archie-state-store ./cmd/archie-state-store
|
||||
- go build -ldflags "-X github.com/samcharles93/archie-core/internal/installtype.buildType=binary" -o {{.BIN_DIR}}/archie-ui ./cmd/archie-ui
|
||||
- go build -ldflags "-X github.com/samcharles93/archie-core/internal/installtype.buildType=binary" -o {{.BIN_DIR}}/archie-messaging ./cmd/archie-messaging
|
||||
- go build -ldflags "-X github.com/samcharles93/archie-core/internal/app/agentworker.version={{.RUNTIME_VERSION}} -X github.com/samcharles93/archie-core/internal/installtype.buildType=binary" -o {{.BIN_DIR}}/archie-agent ./cmd/archie-agent
|
||||
|
||||
test:
|
||||
|
||||
Reference in new issue
Block a user