You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
go ports: switch Go ports that do not build offline to using the offline_build option
This commit is contained in:
@@ -27,7 +27,7 @@ checksums rmd160 c1b88508013041f23b2744e6f9c4c4315407887f \
|
||||
size 1301351
|
||||
|
||||
# Allow Go to fetch deps at build time
|
||||
build.env-delete GO111MODULE=off GOPROXY=off
|
||||
go.offline_build no
|
||||
|
||||
build.cmd make
|
||||
build.target build
|
||||
|
||||
@@ -34,7 +34,7 @@ checksums rmd160 2b3b34fd71d8aaf271882c0013f1447e2d71a898 \
|
||||
sha256 e2bf45a039d1f6bedfd900b656a42ee3986c5a27ddae1a083f2dc52011c3b401 \
|
||||
size 2224382
|
||||
|
||||
build.env-delete GO111MODULE=off GOPROXY=off
|
||||
go.offline_build no
|
||||
|
||||
build.pre_args-append \
|
||||
-ldflags \"-X ${go.package}/cmd.VERSION=${github.tag_prefix}${version}\"
|
||||
|
||||
@@ -25,7 +25,7 @@ checksums rmd160 847272af914146fbc954a26dbfdb9aafd5b2f93a \
|
||||
size 4786963
|
||||
|
||||
# Allow Go to download dependencies during build time
|
||||
build.env-delete GO111MODULE=off GOPROXY=off
|
||||
go.offline_build no
|
||||
|
||||
build.pre_args-append \
|
||||
-ldflags \
|
||||
|
||||
@@ -34,7 +34,7 @@ depends_build-append \
|
||||
depends_lib-append path:lib/pkgconfig/icu-uc.pc:icu
|
||||
|
||||
# Allow Go to download dependencies during build time
|
||||
build.env-delete GO111MODULE=off GOPROXY=off
|
||||
go.offline_build no
|
||||
|
||||
build.cmd ./build-release.sh
|
||||
build.args -N -v ${github.tag_prefix}${version}
|
||||
|
||||
@@ -24,7 +24,7 @@ checksums rmd160 0826047454a046d09e90113148ecc88530f5cf38 \
|
||||
sha256 9405128799a2c01237378333514ef68b94a099f3d714c1c849c2087efe140aa3 \
|
||||
size 1458197
|
||||
|
||||
build.env-delete GO111MODULE=off GOPROXY=off
|
||||
go.offline_build no
|
||||
build.cmd \
|
||||
"${go.bin} generate && ${go.bin} build -o bin/${name} -ldflags '-X ${go.package}/pkg/version.Tag=v${version}' ."
|
||||
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ checksums rmd160 7349194d0b5c58c70cd2337cc7711c286005d84b \
|
||||
|
||||
# Difficulty building with vendored libs.
|
||||
# Allow fetching libraries at build time:
|
||||
build.env-delete GO111MODULE=off GOPROXY=off
|
||||
go.offline_build no
|
||||
|
||||
build.cmd make
|
||||
build.pre_args VERSION=${version}
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@ patch {
|
||||
}
|
||||
|
||||
# Allow Go to fetch deps at build time
|
||||
build.env-delete GO111MODULE=off GOPROXY=off
|
||||
go.offline_build no
|
||||
|
||||
build.cmd make
|
||||
build.target build
|
||||
|
||||
@@ -22,7 +22,7 @@ checksums rmd160 1cb1c2bde712f074945207d13e10e88ed72c5be8 \
|
||||
size 10344534
|
||||
|
||||
# FIXME: This port currently can't be built without allowing go mod to fetch
|
||||
build.env-delete GOPROXY=off GO111MODULE=off
|
||||
go.offline_build no
|
||||
|
||||
# Suppress build date for reproducible builds
|
||||
# Switch to SOURCE_DATE_EPOCH approach in the future
|
||||
|
||||
@@ -29,7 +29,7 @@ checksums rmd160 ebdd805ee5d03a35708690e09a012fe02d4a228b \
|
||||
size 18091896
|
||||
|
||||
# Allow fetching dependencies at build time
|
||||
build.env-delete GOPROXY=off GO111MODULE=off
|
||||
go.offline_build no
|
||||
|
||||
build.cmd make
|
||||
build.pre_args-append GOPATH=${gopath}
|
||||
|
||||
@@ -30,7 +30,7 @@ conflicts bazel
|
||||
|
||||
build.cmd ./build.sh
|
||||
build.env-append BAZELISK_VERSION=v${version}
|
||||
build.env-delete GO111MODULE=off GOPROXY=off
|
||||
go.offline_build no
|
||||
|
||||
patchfiles patch-bazelisk-version.diff \
|
||||
patch-build.sh.diff
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ license Apache-2
|
||||
installs_libs no
|
||||
|
||||
# Allow fetching deps at build time
|
||||
build.env-delete GO111MODULE=off GOPROXY=off
|
||||
go.offline_build no
|
||||
build.pre_args -ldflags \"-X main.version=v${version}\"
|
||||
|
||||
github.tarball_from archive
|
||||
|
||||
@@ -33,7 +33,7 @@ depends_build-append \
|
||||
port:packr
|
||||
|
||||
# allow Go to fetch deps at run-time
|
||||
build.env-delete GO111MODULE=off GOPROXY=off
|
||||
go.offline_build no
|
||||
|
||||
build.cmd make
|
||||
build.pre_args VERSION=${version}
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ checksums rmd160 0b8d58a23a4e26f08621cf4d394b05283a5cdcc2 \
|
||||
size 1423596
|
||||
|
||||
# Allow Go to download dependencies at build time
|
||||
build.env-delete GO111MODULE=off GOPROXY=off
|
||||
go.offline_build no
|
||||
|
||||
build.pre_args -o ./_dist/${name}
|
||||
build.args ./cmd/${name}
|
||||
|
||||
@@ -21,7 +21,7 @@ checksums ${distname}${extract.suffix} \
|
||||
|
||||
set go_ldflags "-s -w -X ${go.package}/cmd.CliVersion=${version}"
|
||||
build.args -tags main -ldflags \"${go_ldflags}\"
|
||||
build.env-delete GO111MODULE=off GOPROXY=off
|
||||
go.offline_build no
|
||||
|
||||
destroot {
|
||||
xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
|
||||
|
||||
@@ -26,7 +26,7 @@ checksums rmd160 f033d1f58306ed9a1ee46330492f872ba1a683fb \
|
||||
size 1461715
|
||||
|
||||
# Allow Go modules so that we can build vendored dependencies
|
||||
build.env-delete GO111MODULE=off GOPROXY=off
|
||||
go.offline_build no
|
||||
build.pre_args-append \
|
||||
-ldflags \"-X ${go.package}/cmd.current=${version}\"
|
||||
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ checksums rmd160 93c45087781e03feac84d11a6e6eec22f0920261 \
|
||||
sha256 4ace2f6bd7d46fbc62cf125b455e1c13e7a7647918eee207a4a77862f76462c5 \
|
||||
size 7003127
|
||||
|
||||
build.env-delete GO111MODULE=off GOPROXY=off
|
||||
go.offline_build no
|
||||
|
||||
build.dir ${worksrcpath}/go
|
||||
build.target ./cmd/dolt
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ checksums rmd160 531e157908a338ae21d183b43e904b4daf20438d \
|
||||
size 136033
|
||||
|
||||
# FIXME: This port currently can't be built without allowing go mod to fetch
|
||||
build.env-delete GOPROXY=off GO111MODULE=off
|
||||
go.offline_build no
|
||||
|
||||
destroot {
|
||||
xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin
|
||||
|
||||
@@ -27,7 +27,7 @@ checksums rmd160 a4684c8ba5f96e8c9c32b241cfa8a99913509769 \
|
||||
size 34613816
|
||||
|
||||
# Issues with vendored deps: allow fetching deps at build time
|
||||
build.env-delete GO111MODULE=off GOPROXY=off
|
||||
go.offline_build no
|
||||
|
||||
destroot {
|
||||
xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
|
||||
|
||||
@@ -24,7 +24,7 @@ checksums rmd160 4adcc76dc9e3260afb408a992d2b194eb5b2ab7b \
|
||||
size 1693169
|
||||
|
||||
# Allow Go to download dependencies at runtime
|
||||
build.env-delete GO111MODULE=off GOPROXY=off
|
||||
go.offline_build no
|
||||
|
||||
build.cmd "${go.bin} generate ./... && ${go.bin} build"
|
||||
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ checksums rmd160 6c39839289a01770a93a56309345553325bfd572 \
|
||||
|
||||
depends_run-append port:go
|
||||
|
||||
build.env-delete GO111MODULE=off GOPROXY=off
|
||||
go.offline_build no
|
||||
build.args ./cmd/${name}
|
||||
|
||||
destroot {
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user