Wire process identity cancellation and shared HTTP server lifecycle
This commit is contained in:
@@ -92,7 +92,8 @@ host_os=$(go env GOHOSTOS)
|
||||
host_arch=$(go env GOHOSTARCH)
|
||||
GOOS="$host_os" GOARCH="$host_arch" CGO_ENABLED=1 go test -race ./...
|
||||
for arch in amd64 arm64; do
|
||||
GOOS=linux GOARCH="$arch" CGO_ENABLED=0 go build -trimpath -ldflags '-s -w' \
|
||||
GOOS=linux GOARCH="$arch" CGO_ENABLED=0 go build -trimpath \
|
||||
-ldflags "-s -w -X main.version=$version -X main.revision=$candidate" \
|
||||
-o "$release_tmp/scriptorium-$version-linux-$arch" ./cmd/scriptorium
|
||||
done
|
||||
|
||||
|
||||
@@ -210,7 +210,7 @@ func TestReleasePublishesOnlyValidatedTag(t *testing.T) {
|
||||
t.Fatalf("unexpected validation calls: %s", log)
|
||||
}
|
||||
for i, arch := range []string{"amd64", "arm64"} {
|
||||
if !strings.HasPrefix(lines[i+1], "build -trimpath -ldflags -s -w -o ") ||
|
||||
if !strings.HasPrefix(lines[i+1], "build -trimpath -ldflags -s -w -X main.version="+version+" -X main.revision="+f.candidate+" -o ") ||
|
||||
!strings.Contains(lines[i+1], "scriptorium-"+version+"-linux-"+arch+" ./cmd/scriptorium|") ||
|
||||
!strings.HasSuffix(lines[i+1], "|off|-mod=readonly|off|off|local|linux|"+arch+"|0") {
|
||||
t.Fatalf("unexpected build: %s", lines[i+1])
|
||||
|
||||
Reference in New Issue
Block a user