forked from open-policy-agent/opa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: WASM_ENABLED=1 for all platforms, bump go to 1.16.3
Notes: - If there are other users of the 'build-windows' make target they would likely be annoyed by the change that's now apt-get'ting packages - We could build a builder image instead of installing the package every time. - ci-go-*: run as root now, so we're able to install the packages for windows. - tests: skip tests that depend on not being run as root when root. The change to ci-go-* makes that necessary; the impact is rather limited right now. We can reconsider if there are more tests depending on not being run as root. - build: add '-buildmode=exe' to GOFLAGS Primarily for the windows build, but I don't think it should be wrong for the others either: golang/go#40795 See https://golang.org/cmd/go/#hdr-Build_modes: > -buildmode=exe > Build the listed main packages and everything they import into > executables. Packages not named main are ignored. - go: fix version as 1.16.3 This was discussed in this PR, but not the other one. We'd rather keep this an exact match. - build: update go module related env vars With 1.16, https://blog.golang.org/go116-module-changes, > The go command now builds packages in module-aware mode by default. Also, since we've added the `go 1.15` directive to go.mod, we can drop all -mod=vendor flags, https://golang.org/ref/mod#go-mod-file-go, > At go 1.14 or higher, automatic vendoring may be enabled. If the file > vendor/modules.txt is present and consistent with go.mod, there is no > need to explicitly use the -mod=vendor flag. - build: replace build-docker by build-linux Turns out the binaries were identical now. - workflow: adapt github workflows - build: override docker id/gid in 'image' target, to keep existing behaviour. Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
- Loading branch information
Showing
12 changed files
with
213 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.16 | ||
1.16.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -exo pipefail | ||
CC=x86_64-w64-mingw32-gcc | ||
PKG=gcc-mingw-w64-x86-64 | ||
|
||
type -f ${CC} 2>/dev/null && exit 0 | ||
|
||
apt-get update && \ | ||
apt-get install --no-install-recommends -y ${PKG} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/sh | ||
|
||
GOFLAGS=-mod=vendor GO111MODULE=on GOOS="" GOARCH="" go run ./build/generate-man $@ | ||
GOOS="" GOARCH="" go run ./build/generate-man $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/sh | ||
|
||
GOFLAGS=-mod=vendor GO111MODULE=on GOOS="" GOARCH="" go run -tags=opa_wasm ./vendor/golang.org/x/tools/cmd/goimports -local github.com/open-policy-agent/opa $@ | ||
GOOS="" GOARCH="" go run -tags=opa_wasm ./vendor/golang.org/x/tools/cmd/goimports -local github.com/open-policy-agent/opa $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters