Commit Graph

7 Commits

Author SHA1 Message Date
Steven Allen
8d857bab3e fix vendoring dependencies when building the source tarball
TMPDIR is a special variable indicating the _system_ temporary directory root.
Unfortunately, go refuses to honor `go.mod` files in this directory to prevent
random `/tmp/go.mod` files from messing with modules cloned into `/tmp`.

The fix is simple: rename TMPDIR to TEMP.
2019-05-17 12:34:11 -07:00
Christopher Buesser
f31dd2aae6 GOCC implementation & fix in make & build scripts
The usage of a native 'go' command has been replaced with a make &
environment variable $GOCC. This enables building with multiple go
versions on a single machine as documented:
  * https://golang.org/doc/install#extra_versions

This enables the usage of:
```bash
$ make install
$ # OR
$ GOCC=go1.12.3 make install
$ # OR
$ GOCC=go1.12.4 make install
```
And the build and test tools now pick up on this change

 On branch go-version-check
 Changes to be committed:
	modified:   Rules.mk
	modified:   bin/check_go_version
	modified:   bin/dist_get
	modified:   bin/maketarball.sh
	modified:   coverage/Rules.mk
	modified:   mk/golang.mk
	modified:   mk/tarball.mk
License: MIT
Signed-off-by: Chris Buesser <christopher.buesser@gmail.com>
2019-04-30 21:22:43 -04:00
Jakub Sztandera
a6053d631a mk: fix maketarball to work with gomod
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-03-13 23:05:48 +01:00
Steven Allen
daff837886 make: fix building source tarball on macos
Unfortunately, `readlink -f` doesn't work on macos. This change *manually*
converts a relative path to an absolute path.

fixes #5859

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-12-19 11:03:58 -08:00
Steven Allen
f2d645f922 fix the maketarball script
* don't write the tarball in the directory we're taring (makes tar unhappy)
* fix permissions
* fix gopath

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-11-01 19:23:23 -07:00
Jakub Sztandera
57adfee1ab fix: maketarball.sh for OSX
Just stop using realpath, should not matter.

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-10-09 20:02:22 +01:00
Jakub Sztandera
2535220864 mk: add tarball support
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-04-05 19:18:22 +02:00