Skip to content
This repository was archived by the owner on Aug 27, 2018. It is now read-only.

Commit dcb1bb6

Browse files
authored
deps: pin to use github.com/myitcv/gopherjs. (#156)
1 parent 57b1679 commit dcb1bb6

31 files changed

+2525
-1902
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ addons:
2020
chrome: beta
2121

2222
go:
23-
- 1.x
23+
- stable
2424

2525
go_import_path: myitcv.io/react
2626

.vendor.txt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
./_vendor/src/mvdan.cc/sh 43f0b783abe67b568ff4fe4d0b84c44d73eac979 git@github.com:mvdan/sh
1+
./_vendor/src/mvdan.cc/sh 43f0b783abe67b568ff4fe4d0b84c44d73eac979 https://github.com/mvdan/sh
22
./_vendor/src/honnef.co/go/js/dom 0a64a2db1425c1881d4ec762370250c65f44b85b [email protected]:dominikh/go-js-dom
33
./_vendor/src/honnef.co/go/js/xhr 00e3346113aed89b501ead4e863c7c3d04fa0c5b [email protected]:dominikh/go-js-xhr
44
./_vendor/src/honnef.co/go/js/util 96b8dd9d16214b6cd9d8c8e84b3a375da4688108 [email protected]:dominikh/go-js-util
5-
./_vendor/src/github.com/jteeuwen/go-bindata a0ff2567cfb70903282db057e799fd826784d41d git@github.com:jteeuwen/go-bindata
5+
./_vendor/src/github.com/jteeuwen/go-bindata a0ff2567cfb70903282db057e799fd826784d41d https://github.com/jteeuwen/go-bindata
66
./_vendor/src/github.com/spf13/cobra 16c014f1a19d865b765b420e74508f80eb831ada [email protected]:spf13/cobra
77
./_vendor/src/github.com/spf13/pflag 9ff6c6923cfffbcd502984b8e0c80539a94968b7 [email protected]:spf13/pflag
8-
./_vendor/src/github.com/russross/blackfriday b253417e1cb644d645a0a3bb1fa5034c8030127c git@github.com:russross/blackfriday
9-
./_vendor/src/github.com/gopherjs/gopherjs 8dffc02ea1cb8398bb73f30424697c60fcf8d4c5 git@github.com:gopherjs/gopherjs
10-
./_vendor/src/github.com/gopherjs/jsbuiltin 67703bfb044e3192fbcab025c3aeaeedafad1f2f git@github.com:gopherjs/jsbuiltin
8+
./_vendor/src/github.com/russross/blackfriday b253417e1cb644d645a0a3bb1fa5034c8030127c https://github.com/russross/blackfriday
9+
./_vendor/src/github.com/gopherjs/gopherjs e13dc1aefa91d0f55ccf30757d6b1e82173f11fd https://github.com/gopherjs/gopherjs
10+
./_vendor/src/github.com/gopherjs/jsbuiltin 67703bfb044e3192fbcab025c3aeaeedafad1f2f https://github.com/gopherjs/jsbuiltin
1111
./_vendor/src/github.com/kisielk/gotool 0de1eaf82fa3f583ce21fde859f1e7e0c5e9b220 [email protected]:kisielk/gotool
1212
./_vendor/src/github.com/fsnotify/fsnotify 7d7316ed6e1ed2de075aab8dfc76de5d158d66e1 [email protected]:fsnotify/fsnotify
1313
./_vendor/src/github.com/kardianos/osext 9d302b58e975387d0b4d9be876622c86cefe64be [email protected]:kardianos/osext
14-
./_vendor/src/github.com/sclevine/agouti 8cf0313221cb2c26a4059f8e273c0856b4cb091d git@github.com:sclevine/agouti
14+
./_vendor/src/github.com/sclevine/agouti 8cf0313221cb2c26a4059f8e273c0856b4cb091d https://github.com/sclevine/agouti
1515
./_vendor/src/github.com/neelance/astrewrite 99348263ae862cc230986ce88deaddbf7edcc034 [email protected]:neelance/astrewrite
1616
./_vendor/src/github.com/neelance/sourcemap 8c68805598ab8d5637b1a72b5f7d381ea0f39c31 [email protected]:neelance/sourcemap
17-
./_vendor/src/github.com/shurcooL/sanitized_anchor_name 79c90efaf01eddc01945af5bc1797859189b830b git@github.com:shurcooL/sanitized_anchor_name
18-
./_vendor/src/github.com/shurcooL/httpfs 809beceb23714880abc4a382a00c05f89d13b1cc git@github.com:shurcooL/httpfs
19-
./_vendor/src/myitcv.io/gogenerate 8ad09dd98465cdb14438b1f82397ad8eb745ec01 git@github.com:myitcv/gogenerate
20-
./_vendor/src/myitcv.io/immutable d40652f0ca28eff7665d58d506d2ba98ac863f56 git@github.com:myitcv/immutable
17+
./_vendor/src/github.com/shurcooL/sanitized_anchor_name 79c90efaf01eddc01945af5bc1797859189b830b https://github.com/shurcooL/sanitized_anchor_name
18+
./_vendor/src/github.com/shurcooL/httpfs 809beceb23714880abc4a382a00c05f89d13b1cc https://github.com/shurcooL/httpfs
19+
./_vendor/src/myitcv.io/gogenerate 8ad09dd98465cdb14438b1f82397ad8eb745ec01 https://github.com/myitcv/gogenerate
20+
./_vendor/src/myitcv.io/immutable d40652f0ca28eff7665d58d506d2ba98ac863f56 https://github.com/myitcv/immutable
2121
./_vendor/src/myitcv.io/gjbt 380934b3729925dd61d0eda6b7513042cfea6914 [email protected]:myitcv/gjbt.git
22-
./_vendor/src/myitcv.io/highlightjs e0ea663591fbdbce10ca2658c680ba7be2391ff8 git@github.com:myitcv/highlightjs
23-
./_vendor/src/myitcv.io/sorter e31395312285046bfee144dd5347387a9a2358d2 git@github.com:myitcv/sorter
24-
./_vendor/src/myitcv.io/remarkable 6e8b85d04c0c2559fec23559cf88780db6d93083 git@github.com:myitcv/remarkable
22+
./_vendor/src/myitcv.io/highlightjs e0ea663591fbdbce10ca2658c680ba7be2391ff8 https://github.com/myitcv/highlightjs
23+
./_vendor/src/myitcv.io/sorter e31395312285046bfee144dd5347387a9a2358d2 https://github.com/myitcv/sorter
24+
./_vendor/src/myitcv.io/remarkable 6e8b85d04c0c2559fec23559cf88780db6d93083 https://github.com/myitcv/remarkable
2525
./_vendor/src/golang.org/x/net da118f7b8e5954f39d0d2130ab35d4bf0e3cb344 https://go.googlesource.com/net
2626
./_vendor/src/golang.org/x/tools 94b14834a20132093826ea5e2da5502a13908ad3 https://go.googlesource.com/tools
2727
./_vendor/src/golang.org/x/sys 9a7256cb28ed514b4e1e5f68959914c4c28a92e0 https://go.googlesource.com/sys

_scripts/update_examples.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ source "${BASH_SOURCE%/*}/common.bash"
88
r=$(mktemp -d)
99
t=$(mktemp -d)
1010

11-
echo "Cloning git@github.com:myitcv/gopherjs_examples_sites.git into $r"
11+
echo "Cloning https://github.com/myitcv/gopherjs_examples_sites into $r"
1212

13-
git clone -q git@github.com:myitcv/gopherjs_examples_sites.git $r/gopherjs_examples_sites
13+
git clone -q https://github.com/myitcv/gopherjs_examples_sites $r/gopherjs_examples_sites
1414
rm -rf $r/gopherjs_examples_sites/*
1515

1616
mkdir $r/gopherjs_examples_sites/blog
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
version: 2
2+
jobs:
3+
build:
4+
working_directory: /go/src/github.com/gopherjs/gopherjs
5+
docker:
6+
# We have a custom installation of Go below so this version is (largely) irrelevant.
7+
- image: circleci/golang:1.10
8+
9+
environment:
10+
SOURCE_MAP_SUPPORT: false
11+
NVM_VERSION: v0.33.9
12+
GO_VERSION: 1.10.3
13+
NODE_VERSION: 10.0.0
14+
15+
steps:
16+
- checkout
17+
18+
- run: |
19+
# Install nvm.
20+
git clone https://github.com/creationix/nvm.git $HOME/.nvm
21+
cd $HOME/.nvm && git checkout $NVM_VERSION
22+
echo 'export NVM_DIR="$HOME/.nvm"' >> $BASH_ENV
23+
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV
24+
25+
- run: |
26+
# Install our own local Go version; we need src/path/filepath to be writable for certain tests.
27+
mkdir $HOME/goroot
28+
curl https://storage.googleapis.com/golang/go$GO_VERSION.linux-amd64.tar.gz | tar -C $HOME/goroot --strip-components=1 -xz
29+
chmod a+w $HOME/goroot/src/path/filepath
30+
echo 'export PATH="$HOME/goroot/bin:$PATH"' >> $BASH_ENV
31+
32+
- run: |
33+
# Per https://github.com/gopherjs/gopherjs/pull/687.
34+
echo 'ulimit -s 10000' >> $BASH_ENV
35+
36+
- run: |
37+
# Setup our required Node version now that nvm is installed.
38+
nvm install $NODE_VERSION node
39+
nvm alias default $NODE_VERSION
40+
41+
- run: |
42+
# Verify our environment setup.
43+
which node
44+
which go
45+
node --version
46+
go version
47+
go env
48+
49+
- run: |
50+
# Per https://github.com/gopherjs/gopherjs/blob/master/doc/syscalls.md.
51+
npm install --global node-gyp
52+
cd node-syscall && node-gyp rebuild && mkdir -p $HOME/.node_libraries/ && cp build/Release/syscall.node $HOME/.node_libraries/syscall.node
53+
54+
# this gives us the repo-local binaries we require
55+
npm install
56+
57+
- run: |
58+
go get -t ./...
59+
go install github.com/gopherjs/gopherjs
60+
61+
- run:
62+
# because this is a long-running test suite
63+
no_output_timeout: 30m
64+
command: |
65+
echo ">> Regenerate compiler/prelude"
66+
go generate github.com/gopherjs/gopherjs/compiler/prelude
67+
68+
echo ">> Ensure there are no variations from the git commit"
69+
diff -u <(echo -n) <(git status --porcelain)
70+
71+
echo ">> Ensure all go code is well formatted."
72+
diff -u <(echo -n) <(gofmt -d .)
73+
74+
echo ">> Vetting github.com/gopherjs/gopherjs"
75+
go tool vet *.go
76+
77+
echo ">> vet all subdirectories except tests and third_party."
78+
for d in */; do echo $d; done | grep -v tests/ | grep -v third_party/ | grep -v vendor/ | xargs go tool vet
79+
80+
echo ">> All those packages should have // +build js."
81+
diff -u <(echo -n) <(go list ./compiler/natives/src/...)
82+
83+
echo ">> Should build successfully (can't run tests, since only client is supported)."
84+
gopherjs install -v net/http
85+
86+
echo ">> Run the core gopherjs tests; exclusions take from .std_test_pkg_exclusions."
87+
go list std | grep -v -x -f .std_test_pkg_exclusions | xargs gopherjs test --minify -v --short github.com/gopherjs/gopherjs/tests/...
88+
89+
echo ">> Race tests."
90+
go test -v -race ./...
91+
92+
echo ">> Non-minified gopherjs tests should also work."
93+
gopherjs test -v fmt
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# these are go list std packages we want to exclude from our tests
2+
context
3+
crypto
4+
crypto/internal/cipherhw
5+
crypto/tls
6+
crypto/x509/pkix
7+
debug/gosym
8+
debug/plan9obj
9+
encoding
10+
go/build
11+
go/importer
12+
go/internal/gccgoimporter
13+
go/internal/gcimporter
14+
go/internal/srcimporter
15+
go/types
16+
hash
17+
image/color/palette
18+
image/internal/imageutil
19+
internal/cpu
20+
internal/nettrace
21+
internal/poll
22+
internal/race
23+
internal/singleflight
24+
internal/syscall/unix
25+
internal/syscall/windows
26+
internal/syscall/windows/registry
27+
internal/syscall/windows/sysdll
28+
internal/testenv
29+
internal/testlog
30+
internal/trace
31+
log
32+
log/syslog
33+
net
34+
net/http
35+
net/http/cgi
36+
net/http/httptest
37+
net/http/httptrace
38+
net/http/httputil
39+
net/http/internal
40+
net/http/pprof
41+
net/internal/socktest
42+
net/rpc
43+
net/smtp
44+
os
45+
os/exec
46+
os/signal
47+
os/signal/internal/pty
48+
os/user
49+
plugin
50+
runtime
51+
runtime/cgo
52+
runtime/debug
53+
runtime/internal/atomic
54+
runtime/internal/sys
55+
runtime/pprof
56+
runtime/pprof/internal/profile
57+
runtime/race
58+
runtime/trace
59+
syscall
60+
testing
61+
testing/internal/testdeps
62+
testing/iotest
63+
unsafe
64+
vendor/golang_org/x/crypto/chacha20poly1305
65+
vendor/golang_org/x/crypto/chacha20poly1305/internal/chacha20
66+
vendor/golang_org/x/crypto/cryptobyte
67+
vendor/golang_org/x/crypto/cryptobyte/asn1
68+
vendor/golang_org/x/crypto/curve25519
69+
vendor/golang_org/x/crypto/poly1305
70+
vendor/golang_org/x/net/http2/hpack
71+
vendor/golang_org/x/net/idna
72+
vendor/golang_org/x/net/internal/nettest
73+
vendor/golang_org/x/net/lex/httplex
74+
vendor/golang_org/x/net/nettest
75+
vendor/golang_org/x/net/proxy
76+
vendor/golang_org/x/text/secure
77+
vendor/golang_org/x/text/secure/bidirule
78+
vendor/golang_org/x/text/transform
79+
vendor/golang_org/x/text/unicode
80+
vendor/golang_org/x/text/unicode/bidi
81+
vendor/golang_org/x/text/unicode/norm

_vendor/src/github.com/gopherjs/gopherjs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Now you can use `gopherjs build [package]`, `gopherjs build [files]` or `gopherj
2727

2828
#### gopherjs run, gopherjs test
2929

30-
If you want to use `gopherjs run` or `gopherjs test` to run the generated code locally, install Node.js 4.x (or newer), and the `source-map-support` module:
30+
If you want to use `gopherjs run` or `gopherjs test` to run the generated code locally, install Node.js 10.0.0 (or newer), and the `source-map-support` module:
3131

3232
```
3333
npm install --global source-map-support

0 commit comments

Comments
 (0)