Skip to content

Commit cca79e8

Browse files
committed
CI: Fix check for forgotten // +build js constraints in natives.
This is a fixup for 9a32def. That commit tried to introduce a CI check for catching when .go files in compiler/natives/src are accidentally missing // +buid js build constraints. However, due to the weird Circle CI setup with symlinks, that CI check wasn't actually going to catch any issues, as proven by test commit a774498 and that it passed that check. However, test commit 7aebc06 showed that relative import path patterns work okay with the Circle CI setup, so use that instead.
1 parent f24d481 commit cca79e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

circle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ test:
1717
- diff -u <(echo -n) <(gofmt -d .)
1818
- go tool vet *.go # Go package in root directory.
1919
- for d in */; do echo $d; done | grep -v tests/ | grep -v third_party/ | xargs go tool vet # All subdirectories except "tests", "third_party".
20-
- diff -u <(echo -n) <(go list github.com/gopherjs/gopherjs/compiler/natives/src/...) # All those packages should have // +build js.
20+
- diff -u <(echo -n) <(go list ./compiler/natives/src/...) # All those packages should have // +build js.
2121
- >
2222
gopherjs test -v --short
2323
github.com/gopherjs/gopherjs/tests

0 commit comments

Comments
 (0)