From: Sergey Matveev Date: Fri, 22 Jan 2021 12:31:32 +0000 (+0300) Subject: Vendorize tarball X-Git-Tag: v2.6.0^0 X-Git-Url: http://www.git.cypherpunks.ru/?p=gocheese.git;a=commitdiff_plain;h=933ae3f9d5d59e7b8d8179c3ac673adfce6a54c7 Vendorize tarball --- diff --git a/.gitignore b/.gitignore index fa62ba1..bc6365f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ gocheese gocheese.info gocheese.html -module-name VERSION diff --git a/clean.do b/clean.do index 8216ea9..c1f4ca0 100644 --- a/clean.do +++ b/clean.do @@ -1 +1 @@ -rm -f gocheese gocheese.info module-name VERSION +rm -f gocheese gocheese.info VERSION diff --git a/go.mod b/go.mod index 0c48a2c..a1659f5 100644 --- a/go.mod +++ b/go.mod @@ -3,6 +3,6 @@ module go.cypherpunks.ru/gocheese/v2 go 1.12 require ( - golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 - golang.org/x/net v0.0.0-20201031054903-ff519b6c9102 + golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad + golang.org/x/net v0.0.0-20210119194325-5f4716e94777 ) diff --git a/go.sum b/go.sum index 4eefbf9..76607c2 100644 --- a/go.sum +++ b/go.sum @@ -1,16 +1,16 @@ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 h1:pLI5jrR7OSLijeIDcmRxNmw2api+jEfxLoykJVice/E= -golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad h1:DN0cp81fZ3njFcrLCytUHRSUkqBjfTo4Tx9RJTWs0EY= +golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3 h1:0GoQqolDA55aaLxZyTzK/Y2ePZzZTUrRacwib7cNsYQ= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20201031054903-ff519b6c9102 h1:42cLlJJdEh+ySyeUUbEQ5bsTiq8voBeTuweGVkY6Puw= -golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20210119194325-5f4716e94777 h1:003p0dJM77cxMSyCPFphvZf/Y5/NXf5fzg6ufd1/Oew= +golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d h1:+R4KGOnez64A81RvjARKc4UT5/tI9ujCIVX+P5KiHuI= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f h1:+Nyd8tzPX9R7BWHguqsrbFdRx3WQ/1ib8I44HXV5yTA= -golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 h1:nxC68pudNYkKU6jWhgrqdreuFiOQWj1Fs7T3VrH4Pjw= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= diff --git a/gocheese.do b/gocheese.do index a5f7cc5..0b53edd 100644 --- a/gocheese.do +++ b/gocheese.do @@ -1,2 +1,2 @@ -redo-ifchange *.go module-name -${GO:=go} build -o $3 `cat module-name` +redo-ifchange *.go +${GO:-go} build -o $3 diff --git a/install.texi b/install.texi index a060ec3..eca6699 100644 --- a/install.texi +++ b/install.texi @@ -5,12 +5,12 @@ Preferable way is to download tarball with the signature from website and, for example, run tests with benchmarks: @example -$ [fetch|wget] http://www.gocheese.cypherpunks.ru/gocheese-@value{VERSION}.tar.xz -$ [fetch|wget] http://www.gocheese.cypherpunks.ru/gocheese-@value{VERSION}.tar.xz.sig -$ gpg --verify gocheese-@value{VERSION}.tar.xz.sig gocheese-@value{VERSION}.tar.xz -$ xz -d < gocheese-@value{VERSION}.tar.xz | tar xf - +$ [fetch|wget] http://www.gocheese.cypherpunks.ru/gocheese-@value{VERSION}.tar.zst +$ [fetch|wget] http://www.gocheese.cypherpunks.ru/gocheese-@value{VERSION}.tar.zst.sig +$ gpg --verify gocheese-@value{VERSION}.tar.zst.sig gocheese-@value{VERSION}.tar.zst +$ zstd -d < gocheese-@value{VERSION}.tar.zst | tar xf - $ cd gocheese-@value{VERSION} -$ redo test all +$ redo test all # or go build -mod=vendor @end example It uses @url{http://cr.yp.to/redo.html, redo} build system for that diff --git a/makedist.sh b/makedist.sh index 87e7b6f..881d634 100755 --- a/makedist.sh +++ b/makedist.sh @@ -9,8 +9,9 @@ git clone . $tmp/gocheese-$release cd $tmp/gocheese-$release git checkout v$release -redo-ifchange module-name VERSION -mod_name=`cat module-name` +redo-ifchange VERSION + +go mod vendor cat > download.texi < $tmp/includes < gocheese.do -echo 'GOPATH=`pwd` ${GO:=go} test `cat module-name`/... >&2' > test.do +rm -rf .redo .git .gitignore style.css makedist.sh www.do VERSION.do +perl -i -npe "s/go} build/go} build -mod=vendor/" gocheese.do +perl -i -npe "s/go} test/go} test -mod=vendor/" test.do cp ~/work/redo/minimal/do contrib/do find . -type d -exec chmod 755 {} \; find . -type f -exec chmod 644 {} \; -chmod 755 contrib/pyshop2packages.sh contrib/do +chmod +x contrib/pyshop2packages.sh contrib/do cd .. tar cvf gocheese-"$release".tar --uid=0 --gid=0 --numeric-owner gocheese-"$release" -xz -9 gocheese-"$release".tar -gpg --detach-sign --sign --local-user CD5CD01F55343D88 gocheese-"$release".tar.xz +zstd -19 -v gocheese-"$release".tar +gpg --detach-sign --sign --local-user CD5CD01F55343D88 gocheese-"$release".tar.zst -tarball=gocheese-"$release".tar.xz +tarball=gocheese-"$release".tar.zst size=$(( $(stat -f %z $tarball) / 1024 )) hash=$(gpg --print-md SHA256 < $tarball) release_date=$(date "+%Y-%m-%d") @@ -113,7 +60,7 @@ release_date=$(date "+%Y-%m-%d") cat <&2 +${GO:-go} test ./... >&2