Skip to content

Commit 32ead5b

Browse files
luisdavimTomJo2000
authored andcommitted
fix: make kubo work with go 1.26
1 parent 72fca11 commit 32ead5b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

packages/kubo/build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ TERMUX_PKG_LICENSE="MIT, Apache-2.0"
44
TERMUX_PKG_LICENSE_FILE="LICENSE, LICENSE-APACHE, LICENSE-MIT"
55
TERMUX_PKG_MAINTAINER="@termux"
66
TERMUX_PKG_VERSION="0.39.0"
7+
TERMUX_PKG_REVISION=1
78
TERMUX_PKG_SRCURL=https://github.com/ipfs/kubo/releases/download/v${TERMUX_PKG_VERSION}/kubo-source.tar.gz
89
TERMUX_PKG_SHA256=a86a89d866f4058718ef2c6e9c014382e73c220cc320ff7af34fad2ab285bec6
910
TERMUX_PKG_AUTO_UPDATE=true
@@ -22,6 +23,10 @@ termux_step_make() {
2223
cp -a "${TERMUX_PKG_SRCDIR}" "${GOPATH}/src/github.com/ipfs/kubo"
2324
cd "${GOPATH}/src/github.com/ipfs/kubo"
2425

26+
# TODO: remove this once the upstream package is updated to suport go 1.26
27+
go mod edit -replace github.com/cockroachdb/swiss=github.com/cockroachdb/swiss@b0f6560
28+
go mod tidy
29+
go mod vendor
2530
make build
2631

2732
# Fix folders without write permissions preventing which fails repeating builds:

0 commit comments

Comments
 (0)