@cryptotaxi247 / kubo / commits / 9faefe316

refactor(ci): optimize build workflows (#10973)

* ci: optimize build workflows - use go version from go.mod instead of hardcoding - group platforms by OS for parallel builds - remove legacy try-build targets * fix: checkout before setup-go in all workflows setup-go needs go.mod to be present, so checkout must happen first * chore: remove deprecated // +build syntax go 1.17+ uses //go:build, the old syntax is no longer needed * simplify: remove nofuse tag from CI workflows - workflows now rely on platform build constraints - keep make nofuse target for manual builds - remove unused appveyor.yml * ci: remove legacy travis variable and fix gateway-conformance - remove TRAVIS env variable from 4 workflows - fix gateway-conformance checkout path to match working-directory - replace deprecated cache-go-action with built-in setup-go caching

Marcin Rataj committed Sep 19, 2025 at 14:44 UTC 9faefe316f1e3efe3992931b03013bc3bd7f6355
50 files changed +106 -178
.github/build-platforms.yml new
+17
@@ -0,0 +1,17 @@
1 +# Build platforms configuration for Kubo
2 +# Matches https://github.com/ipfs/distributions/blob/master/dists/kubo/build_matrix
3 +# plus linux-riscv64 for emerging architecture support
4 +#
5 +# The Go compiler handles FUSE support automatically via build tags.
6 +# Platforms are simply listed - no need to specify FUSE capability.
7 +
8 +platforms:
9 + - darwin-amd64
10 + - darwin-arm64
11 + - freebsd-amd64
12 + - linux-amd64
13 + - linux-arm64
14 + - linux-riscv64
15 + - openbsd-amd64
16 + - windows-amd64
17 + - windows-arm64
\ No newline at end of file
.github/workflows/codeql-analysis.yml
+1 -1
@@ -34,7 +34,7 @@ jobs:
34 - name: Setup Go
35 uses: actions/setup-go@v6
36 with:
37 - go-version: 1.25.x
37 + go-version-file: 'go.mod'
38
39 # Initializes the CodeQL tools for scanning.
40 - name: Initialize CodeQL
.github/workflows/gateway-conformance.yml
+12 -14
@@ -46,17 +46,16 @@ jobs:
46 output: fixtures
47
48 # 2. Build the kubo-gateway
49 - - name: Setup Go
50 - uses: actions/setup-go@v6
51 - with:
52 - go-version: 1.25.x
53 - - uses: protocol/cache-go-action@v1
54 - with:
55 - name: ${{ github.job }}
49 - name: Checkout kubo-gateway
50 uses: actions/checkout@v5
51 with:
52 path: kubo-gateway
53 + - name: Setup Go
54 + uses: actions/setup-go@v6
55 + with:
56 + go-version-file: 'kubo-gateway/go.mod'
57 + cache: true
58 + cache-dependency-path: kubo-gateway/go.sum
59 - name: Build kubo-gateway
60 run: make build
61 working-directory: kubo-gateway
@@ -133,17 +132,16 @@ jobs:
132 output: fixtures
133
134 # 2. Build the kubo-gateway
136 - - name: Setup Go
137 - uses: actions/setup-go@v6
138 - with:
139 - go-version: 1.25.x
140 - - uses: protocol/cache-go-action@v1
141 - with:
142 - name: ${{ github.job }}
135 - name: Checkout kubo-gateway
136 uses: actions/checkout@v5
137 with:
138 path: kubo-gateway
139 + - name: Setup Go
140 + uses: actions/setup-go@v6
141 + with:
142 + go-version-file: 'kubo-gateway/go.mod'
143 + cache: true
144 + cache-dependency-path: kubo-gateway/go.sum
145 - name: Build kubo-gateway
146 run: make build
147 working-directory: kubo-gateway
.github/workflows/gobuild.yml
+27 -9
@@ -21,20 +21,38 @@ jobs:
21 env:
22 TEST_DOCKER: 0
23 TEST_VERBOSE: 1
24 - TRAVIS: 1
24 GIT_PAGER: cat
25 IPFS_CHECK_RCMGR_DEFAULTS: 1
26 defaults:
27 run:
28 shell: bash
29 steps:
30 + - uses: actions/checkout@v5
31 - uses: actions/setup-go@v6
32 with:
33 - go-version: 1.25.x
34 - - uses: actions/checkout@v5
35 - - run: make cmd/ipfs-try-build
36 - env:
37 - TEST_FUSE: 1
38 - - run: make cmd/ipfs-try-build
39 - env:
40 - TEST_FUSE: 0
33 + go-version-file: 'go.mod'
34 + cache: true
35 + cache-dependency-path: go.sum
36 +
37 + - name: Build all platforms
38 + run: |
39 + # Read platforms from build-platforms.yml and build each one
40 + echo "Building kubo for all platforms..."
41 +
42 + # Read and build each platform
43 + grep '^ - ' .github/build-platforms.yml | sed 's/^ - //' | while read -r platform; do
44 + if [ -z "$platform" ]; then
45 + continue
46 + fi
47 +
48 + echo "::group::Building $platform"
49 + GOOS=$(echo "$platform" | cut -d- -f1)
50 + GOARCH=$(echo "$platform" | cut -d- -f2)
51 +
52 + echo "Building $platform"
53 + echo " GOOS=$GOOS GOARCH=$GOARCH go build -o /dev/null ./cmd/ipfs"
54 + GOOS=$GOOS GOARCH=$GOARCH go build -o /dev/null ./cmd/ipfs
55 + echo "::endgroup::"
56 + done
57 +
58 + echo "All platforms built successfully"
\ No newline at end of file
.github/workflows/golang-analysis.yml
+1 -1
@@ -27,7 +27,7 @@ jobs:
27 submodules: recursive
28 - uses: actions/setup-go@v6
29 with:
30 - go-version: "1.25.x"
30 + go-version-file: 'go.mod'
31 - name: Check that go.mod is tidy
32 uses: protocol/multiple-go-modules@v1.4
33 with:
.github/workflows/golint.yml
+2 -3
@@ -22,15 +22,14 @@ jobs:
22 TEST_DOCKER: 0
23 TEST_FUSE: 0
24 TEST_VERBOSE: 1
25 - TRAVIS: 1
25 GIT_PAGER: cat
26 IPFS_CHECK_RCMGR_DEFAULTS: 1
27 defaults:
28 run:
29 shell: bash
30 steps:
31 + - uses: actions/checkout@v5
32 - uses: actions/setup-go@v6
33 with:
34 - go-version: 1.25.x
35 - - uses: actions/checkout@v5
34 + go-version-file: 'go.mod'
35 - run: make -O test_go_lint
.github/workflows/gotest.yml
+3 -4
@@ -22,19 +22,18 @@ jobs:
22 TEST_DOCKER: 0
23 TEST_FUSE: 0
24 TEST_VERBOSE: 1
25 - TRAVIS: 1
25 GIT_PAGER: cat
26 IPFS_CHECK_RCMGR_DEFAULTS: 1
27 defaults:
28 run:
29 shell: bash
30 steps:
31 + - name: Check out Kubo
32 + uses: actions/checkout@v5
33 - name: Set up Go
34 uses: actions/setup-go@v6
35 with:
35 - go-version: 1.25.x
36 - - name: Check out Kubo
37 - uses: actions/checkout@v5
36 + go-version-file: 'go.mod'
37 - name: Install missing tools
38 run: sudo apt update && sudo apt install -y zsh
39 - name: 👉️ If this step failed, go to «Summary» (top left) → inspect the «Failures/Errors» table
.github/workflows/interop.yml
+2 -7
@@ -9,9 +9,6 @@ on:
9 branches:
10 - 'master'
11
12 -env:
13 - GO_VERSION: 1.25.x
14 -
12 concurrency:
13 group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name == 'push' && github.sha || github.ref }}
14 cancel-in-progress: true
@@ -29,17 +26,16 @@ jobs:
26 TEST_DOCKER: 0
27 TEST_FUSE: 0
28 TEST_VERBOSE: 1
32 - TRAVIS: 1
29 GIT_PAGER: cat
30 IPFS_CHECK_RCMGR_DEFAULTS: 1
31 defaults:
32 run:
33 shell: bash
34 steps:
35 + - uses: actions/checkout@v5
36 - uses: actions/setup-go@v6
37 with:
41 - go-version: ${{ env.GO_VERSION }}
42 - - uses: actions/checkout@v5
38 + go-version-file: 'go.mod'
39 - run: make build
40 - uses: actions/upload-artifact@v4
41 with:
@@ -82,7 +78,6 @@ jobs:
78 LIBP2P_TCP_REUSEPORT: false
79 LIBP2P_ALLOW_WEAK_RSA_KEYS: 1
80 E2E_IPFSD_TYPE: go
85 - TRAVIS: 1
81 GIT_PAGER: cat
82 IPFS_CHECK_RCMGR_DEFAULTS: 1
83 defaults:
.github/workflows/sharness.yml
+4 -4
@@ -22,14 +22,14 @@ jobs:
22 run:
23 shell: bash
24 steps:
25 - - name: Setup Go
26 - uses: actions/setup-go@v6
27 - with:
28 - go-version: 1.25.x
25 - name: Checkout Kubo
26 uses: actions/checkout@v5
27 with:
28 path: kubo
29 + - name: Setup Go
30 + uses: actions/setup-go@v6
31 + with:
32 + go-version-file: 'kubo/go.mod'
33 - name: Install missing tools
34 run: sudo apt update && sudo apt install -y socat net-tools fish libxml2-utils
35 - uses: actions/cache@v4
Rules.mk
+4 -3
@@ -107,8 +107,8 @@ uninstall:
107 .PHONY: uninstall
108
109 supported:
110 - @echo "Currently supported platforms:"
111 - @for p in ${SUPPORTED_PLATFORMS}; do echo $$p; done
110 + @echo "Currently supported platforms (from .github/build-platforms.yml):"
111 + @grep '^ - ' .github/build-platforms.yml | sed 's/^ - //' || (echo "Error: .github/build-platforms.yml not found"; exit 1)
112 .PHONY: supported
113
114 help:
@@ -138,7 +138,8 @@ help:
138 @echo ' test_short - Run short go tests and short sharness tests'
139 @echo ' test_go_short - Run short go tests'
140 @echo ' test_go_test - Run all go tests'
141 - @echo ' test_go_expensive - Run all go tests and compile on all platforms'
141 + @echo ' test_go_build - Build kubo for all platforms from .github/build-platforms.yml'
142 + @echo ' test_go_expensive - Run all go tests and build all platforms'
143 @echo ' test_go_race - Run go tests with the race detector enabled'
144 @echo ' test_go_lint - Run the `golangci-lint` vetting tool'
145 @echo ' test_sharness - Run sharness tests'
appveyor.yml deleted
-49
@@ -1,49 +0,0 @@
1 -# Notes:
2 -# - Minimal appveyor.yml file is an empty file. All sections are optional.
3 -# - Indent each level of configuration with 2 spaces. Do not use tabs!
4 -# - All section names are case-sensitive.
5 -# - Section names should be unique on each level.
6 -
7 -version: "{build}"
8 -
9 -os: Windows Server 2012 R2
10 -
11 -clone_folder: c:\gopath\src\github.com\ipfs\go-ipfs
12 -
13 -environment:
14 - GOPATH: c:\gopath
15 - TEST_VERBOSE: 1
16 - #TEST_NO_FUSE: 1
17 - #TEST_SUITE: test_sharness
18 - #GOFLAGS: -tags nofuse
19 - global:
20 - BASH: C:\cygwin\bin\bash
21 - matrix:
22 - - GOARCH: amd64
23 - GOVERSION: 1.5.1
24 - GOROOT: c:\go
25 - DOWNLOADPLATFORM: "x64"
26 -
27 -install:
28 - # Enable make
29 - #- SET PATH=c:\MinGW\bin;%PATH%
30 - #- copy c:\MinGW\bin\mingw32-make.exe c:\MinGW\bin\make.exe
31 - - go version
32 - - go env
33 -
34 -# Cygwin build script
35 -#
36 -# NOTES:
37 -#
38 -# The stdin/stdout file descriptor appears not to be valid for the Appveyor
39 -# build which causes failures as certain functions attempt to redirect
40 -# default file handles. Ensure a dummy file descriptor is opened with 'exec'.
41 -#
42 -build_script:
43 - - '%BASH% -lc "cd $APPVEYOR_BUILD_FOLDER; exec 0</dev/null; export PATH=$GOPATH/bin:$PATH; make nofuse"'
44 -
45 -test_script:
46 - - '%BASH% -lc "cd $APPVEYOR_BUILD_FOLDER; exec 0</dev/null; export PATH=$GOPATH/bin:$PATH; export GOFLAGS=''-tags nofuse''; export TEST_NO_FUSE=1; export TEST_VERBOSE=1; export TEST_EXPENSIVE=1; export TEST_SUITE=test_sharness; make $TEST_SUITE"'
47 -
48 -#build:
49 -# parallel: true
bin/test-go-build-platforms new
+24
@@ -0,0 +1,24 @@
1 +#!/bin/bash
2 +set -e
3 +
4 +echo "Building kubo for all platforms in .github/build-platforms.yml..."
5 +
6 +if [ ! -f .github/build-platforms.yml ]; then
7 + echo "Error: .github/build-platforms.yml not found"
8 + exit 1
9 +fi
10 +
11 +grep '^ - ' .github/build-platforms.yml | sed 's/^ - //' | while read -r platform; do
12 + if [ -z "$platform" ]; then
13 + continue
14 + fi
15 +
16 + GOOS=$(echo "$platform" | cut -d- -f1)
17 + GOARCH=$(echo "$platform" | cut -d- -f2)
18 +
19 + echo "Building $platform..."
20 + echo " GOOS=$GOOS GOARCH=$GOARCH go build -o /dev/null ./cmd/ipfs"
21 + GOOS=$GOOS GOARCH=$GOARCH go build -o /dev/null ./cmd/ipfs
22 +done
23 +
24 +echo "All platforms built successfully"
\ No newline at end of file
cmd/ipfs/Rules.mk
+1 -13
@@ -2,7 +2,6 @@ include mk/header.mk
2 IPFS_BIN_$(d) := $(call go-curr-pkg-tgt)
3
4 TGT_BIN += $(IPFS_BIN_$(d))
5 -TEST_GO_BUILD += $(d)-try-build
5 CLEAN += $(IPFS_BIN_$(d))
6
7 PATH := $(realpath $(d)):$(PATH)
@@ -15,23 +14,12 @@ PATH := $(realpath $(d)):$(PATH)
14
15 $(d)_flags =-ldflags="-X "github.com/ipfs/kubo".CurrentCommit=$(git-hash)"
16
18 -$(d)-try-build $(IPFS_BIN_$(d)): GOFLAGS += $(cmd/ipfs_flags)
17 +$(IPFS_BIN_$(d)): GOFLAGS += $(cmd/ipfs_flags)
18
19 # uses second expansion to collect all $(DEPS_GO)
20 $(IPFS_BIN_$(d)): $(d) $$(DEPS_GO) ALWAYS #| $(DEPS_OO_$(d))
21 $(go-build-relative)
22
24 -TRY_BUILD_$(d)=$(addprefix $(d)-try-build-,$(SUPPORTED_PLATFORMS))
25 -$(d)-try-build: $(TRY_BUILD_$(d))
26 -.PHONY: $(d)-try-build
27 -
28 -$(TRY_BUILD_$(d)): PLATFORM = $(subst -, ,$(patsubst $<-try-build-%,%,$@))
29 -$(TRY_BUILD_$(d)): GOOS = $(word 1,$(PLATFORM))
30 -$(TRY_BUILD_$(d)): GOARCH = $(word 2,$(PLATFORM))
31 -$(TRY_BUILD_$(d)): $(d) $$(DEPS_GO) ALWAYS
32 - GOOS=$(GOOS) GOARCH=$(GOARCH) $(go-try-build)
33 -.PHONY: $(TRY_BUILD_$(d))
34 -
23 $(d)-install: GOFLAGS += $(cmd/ipfs_flags)
24 $(d)-install: $(d) $$(DEPS_GO) ALWAYS
25 $(GOCC) install $(go-flags-with-tags) ./cmd/ipfs
cmd/ipfs/kubo/daemon_linux.go
-1
@@ -1,5 +1,4 @@
1 //go:build linux
2 -// +build linux
2
3 package kubo
4
cmd/ipfs/kubo/daemon_other.go
-1
@@ -1,5 +1,4 @@
1 //go:build !linux
2 -// +build !linux
2
3 package kubo
4
cmd/ipfs/runmain_test.go
-1
@@ -1,5 +1,4 @@
1 //go:build testrunmain
2 -// +build testrunmain
2
3 package main_test
4
cmd/ipfs/util/signal.go
-1
@@ -1,5 +1,4 @@
1 //go:build !wasm
2 -// +build !wasm
2
3 package util
4
cmd/ipfs/util/ui.go
-1
@@ -1,5 +1,4 @@
1 //go:build !windows
2 -// +build !windows
2
3 package util
4
cmd/ipfs/util/ulimit_freebsd.go
-1
@@ -1,5 +1,4 @@
1 //go:build freebsd
2 -// +build freebsd
2
3 package util
4
cmd/ipfs/util/ulimit_test.go
-1
@@ -1,5 +1,4 @@
1 //go:build !windows && !plan9
2 -// +build !windows,!plan9
2
3 package util
4
cmd/ipfs/util/ulimit_unix.go
-1
@@ -1,5 +1,4 @@
1 //go:build darwin || linux || netbsd || openbsd
2 -// +build darwin linux netbsd openbsd
2
3 package util
4
cmd/ipfs/util/ulimit_windows.go
-1
@@ -1,5 +1,4 @@
1 //go:build windows
2 -// +build windows
2
3 package util
4
cmd/ipfswatch/ipfswatch_test.go
-1
@@ -1,5 +1,4 @@
1 //go:build !plan9
2 -// +build !plan9
2
3 package main
4
cmd/ipfswatch/main.go
-1
@@ -1,5 +1,4 @@
1 //go:build !plan9
2 -// +build !plan9
2
3 package main
4
core/commands/mount_nofuse.go
-1
@@ -1,5 +1,4 @@
1 //go:build !windows && nofuse
2 -// +build !windows,nofuse
2
3 package commands
4
core/commands/mount_unix.go
-1
@@ -1,5 +1,4 @@
1 //go:build !windows && !nofuse
2 -// +build !windows,!nofuse
2
3 package commands
4
core/node/libp2p/fd/sys_unix.go
-1
@@ -1,5 +1,4 @@
1 //go:build linux || darwin
2 -// +build linux darwin
2
3 package fd
4
coverage/main/main.go
-1
@@ -1,5 +1,4 @@
1 //go:build testrunmain
2 -// +build testrunmain
2
3 package main
4
fuse/ipns/ipns_test.go
-1
@@ -1,5 +1,4 @@
1 //go:build !nofuse && !openbsd && !netbsd && !plan9
2 -// +build !nofuse,!openbsd,!netbsd,!plan9
2
3 package ipns
4
fuse/ipns/ipns_unix.go
-1
@@ -1,5 +1,4 @@
1 //go:build !nofuse && !openbsd && !netbsd && !plan9
2 -// +build !nofuse,!openbsd,!netbsd,!plan9
2
3 // package fuse/ipns implements a fuse filesystem that interfaces
4 // with ipns, the naming system for ipfs.
fuse/ipns/link_unix.go
-1
@@ -1,5 +1,4 @@
1 //go:build !nofuse && !openbsd && !netbsd && !plan9
2 -// +build !nofuse,!openbsd,!netbsd,!plan9
2
3 package ipns
4
fuse/ipns/mount_unix.go
-2
@@ -1,6 +1,4 @@
1 //go:build (linux || darwin || freebsd || netbsd || openbsd) && !nofuse
2 -// +build linux darwin freebsd netbsd openbsd
3 -// +build !nofuse
2
3 package ipns
4
fuse/mfs/mfs_test.go
-1
@@ -1,5 +1,4 @@
1 //go:build !nofuse && !openbsd && !netbsd && !plan9
2 -// +build !nofuse,!openbsd,!netbsd,!plan9
2
3 package mfs
4
fuse/mfs/mfs_unix.go
-2
@@ -1,6 +1,4 @@
1 //go:build (linux || darwin || freebsd || netbsd || openbsd) && !nofuse
2 -// +build linux darwin freebsd netbsd openbsd
3 -// +build !nofuse
2
3 package mfs
4
fuse/mfs/mount_unix.go
-2
@@ -1,6 +1,4 @@
1 //go:build (linux || darwin || freebsd || netbsd || openbsd) && !nofuse
2 -// +build linux darwin freebsd netbsd openbsd
3 -// +build !nofuse
2
3 package mfs
4
fuse/mount/fuse.go
-1
@@ -1,5 +1,4 @@
1 //go:build !nofuse && !windows && !openbsd && !netbsd && !plan9
2 -// +build !nofuse,!windows,!openbsd,!netbsd,!plan9
2
3 package mount
4
fuse/node/mount_darwin.go
+1 -2
@@ -1,5 +1,4 @@
1 -//go:build !nofuse
2 -// +build !nofuse
1 +//go:build !nofuse && darwin
2
3 package node
4
fuse/node/mount_nofuse.go
-1
@@ -1,5 +1,4 @@
1 //go:build !windows && nofuse
2 -// +build !windows,nofuse
2
3 package node
4
fuse/node/mount_notsupp.go
-1
@@ -1,5 +1,4 @@
1 //go:build (!nofuse && openbsd) || (!nofuse && netbsd) || (!nofuse && plan9)
2 -// +build !nofuse,openbsd !nofuse,netbsd !nofuse,plan9
2
3 package node
4
fuse/node/mount_test.go
-1
@@ -1,5 +1,4 @@
1 //go:build !openbsd && !nofuse && !netbsd && !plan9
2 -// +build !openbsd,!nofuse,!netbsd,!plan9
2
3 package node
4
fuse/node/mount_unix.go
-1
@@ -1,5 +1,4 @@
1 //go:build !windows && !openbsd && !netbsd && !plan9 && !nofuse
2 -// +build !windows,!openbsd,!netbsd,!plan9,!nofuse
2
3 package node
4
fuse/readonly/ipfs_test.go
-1
@@ -1,5 +1,4 @@
1 //go:build !nofuse && !openbsd && !netbsd && !plan9
2 -// +build !nofuse,!openbsd,!netbsd,!plan9
2
3 package readonly
4
fuse/readonly/mount_unix.go
-2
@@ -1,6 +1,4 @@
1 //go:build (linux || darwin || freebsd) && !nofuse
2 -// +build linux darwin freebsd
3 -// +build !nofuse
2
3 package readonly
4
fuse/readonly/readonly_unix.go
-2
@@ -1,6 +1,4 @@
1 //go:build (linux || darwin || freebsd) && !nofuse
2 -// +build linux darwin freebsd
3 -// +build !nofuse
2
3 package readonly
4
mk/golang.mk
+4 -5
@@ -42,15 +42,14 @@ define go-build
42 $(GOCC) build $(go-flags-with-tags) -o "$@" "$(1)"
43 endef
44
45 -define go-try-build
46 -$(GOCC) build $(go-flags-with-tags) -o /dev/null "$(call go-pkg-name,$<)"
47 -endef
48 -
45 test_go_test: $$(DEPS_GO)
46 $(GOCC) test $(go-flags-with-tags) $(GOTFLAGS) ./...
47 .PHONY: test_go_test
48
53 -test_go_build: $$(TEST_GO_BUILD)
49 +# Build all platforms from .github/build-platforms.yml
50 +test_go_build:
51 + bin/test-go-build-platforms
52 +.PHONY: test_go_build
53
54 test_go_short: GOTFLAGS += -test.short
55 test_go_short: test_go_test
mk/util.mk
+3 -20
@@ -9,26 +9,9 @@ else
9 PATH_SEP :=:
10 endif
11
12 -SUPPORTED_PLATFORMS += windows-386
13 -SUPPORTED_PLATFORMS += windows-amd64
14 -
15 -SUPPORTED_PLATFORMS += linux-arm
16 -SUPPORTED_PLATFORMS += linux-arm64
17 -SUPPORTED_PLATFORMS += linux-386
18 -SUPPORTED_PLATFORMS += linux-amd64
19 -
20 -SUPPORTED_PLATFORMS += darwin-amd64
21 -ifeq ($(shell bin/check_go_version "1.16.0" 2>/dev/null; echo $$?),0)
22 -SUPPORTED_PLATFORMS += darwin-arm64
23 -endif
24 -SUPPORTED_PLATFORMS += freebsd-386
25 -SUPPORTED_PLATFORMS += freebsd-amd64
26 -
27 -SUPPORTED_PLATFORMS += openbsd-386
28 -SUPPORTED_PLATFORMS += openbsd-amd64
29 -
30 -SUPPORTED_PLATFORMS += netbsd-386
31 -SUPPORTED_PLATFORMS += netbsd-amd64
12 +# Platforms are now defined in .github/build-platforms.yml
13 +# The cmd/ipfs-try-build target is deprecated in favor of GitHub Actions
14 +# Use 'make supported' to see the list of platforms
15
16 space:=$() $()
17 comma:=,
plugin/loader/load_nocgo.go
-3
@@ -1,7 +1,4 @@
1 //go:build !cgo && !noplugin && (linux || darwin || freebsd)
2 -// +build !cgo
3 -// +build !noplugin
4 -// +build linux darwin freebsd
2
3 package loader
4
plugin/loader/load_noplugin.go
-1
@@ -1,5 +1,4 @@
1 //go:build noplugin
2 -// +build noplugin
2
3 package loader
4
plugin/loader/load_unix.go
-3
@@ -1,7 +1,4 @@
1 //go:build cgo && !noplugin && (linux || darwin || freebsd)
2 -// +build cgo
3 -// +build !noplugin
4 -// +build linux darwin freebsd
2
3 package loader
4
test/dependencies/dependencies.go
-1
@@ -1,5 +1,4 @@
1 //go:build tools
2 -// +build tools
2
3 package tools
4