Skip to content

Commit d82dec3

Browse files
authored
Merge pull request #8958 from ipfs/chore/rename-to-kubo
refactor: rename to kubo see: #8959
2 parents 289e465 + 3417ed4 commit d82dec3

File tree

199 files changed

+603
-580
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

199 files changed

+603
-580
lines changed

.circleci/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ jobs:
119119
cp go.sum go.sum.bak
120120
121121
# make sure the examples run against the current version of go-ipfs
122-
go mod edit -replace github.com/ipfs/go-ipfs=./../../..
122+
go mod edit -replace github.com/ipfs/kubo=./../../..
123123
go mod tidy
124124
125125
# use the internal config package when we test the current version of go-ipfs
126-
sed -i.bak 's;"github.com/ipfs/go-ipfs-config";"github.com/ipfs/go-ipfs/config";' ./main.go
126+
sed -i.bak 's;"github.com/ipfs/go-ipfs-config";"github.com/ipfs/kubo/config";' ./main.go
127127
128128
go test -v ./...
129129

.github/workflows/docker-image.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ on:
1111

1212
jobs:
1313
push_to_registry:
14-
if: github.repository == 'ipfs/go-ipfs' || github.event_name == 'workflow_dispatch'
14+
if: github.repository == 'ipfs/go-ipfs' || github.repository == 'ipfs/kubo' || github.event_name == 'workflow_dispatch'
1515
name: Push Docker image to Docker Hub
1616
runs-on: ubuntu-latest
1717
env:
18-
IMAGE_NAME: ipfs/go-ipfs
18+
IMAGE_NAME: ipfs/kubo
19+
LEGACY_IMAGE_NAME: ipfs/go-ipfs
1920
steps:
2021
- name: Check out the repo
2122
uses: actions/checkout@v2

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RUN apt-get update && apt-get install -y \
88
ca-certificates \
99
fuse
1010

11-
ENV SRC_DIR /go-ipfs
11+
ENV SRC_DIR /kubo
1212

1313
# Download packages first so they can be cached.
1414
COPY go.mod go.sum $SRC_DIR/
@@ -51,7 +51,7 @@ FROM busybox:1.31.1-glibc
5151
LABEL maintainer="Steven Allen <[email protected]>"
5252

5353
# Get the ipfs binary, entrypoint script, and TLS CAs from the build container.
54-
ENV SRC_DIR /go-ipfs
54+
ENV SRC_DIR /kubo
5555
COPY --from=0 $SRC_DIR/cmd/ipfs/ipfs /usr/local/bin/ipfs
5656
COPY --from=0 $SRC_DIR/bin/container_daemon /usr/local/bin/start_ipfs
5757
COPY --from=0 $SRC_DIR/bin/container_init_run /usr/local/bin/container_init_run

README.md

Lines changed: 106 additions & 87 deletions
Large diffs are not rendered by default.

assets/assets.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
gopath "path"
1010
"strconv"
1111

12-
"github.com/ipfs/go-ipfs/core"
13-
"github.com/ipfs/go-ipfs/core/coreapi"
12+
"github.com/ipfs/kubo/core"
13+
"github.com/ipfs/kubo/core/coreapi"
1414

1515
"github.com/cespare/xxhash"
1616
cid "github.com/ipfs/go-cid"

bin/get-docker-tags.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,15 @@ BUILD_NUM=$1
2929
GIT_SHA1=${2:-$(git rev-parse HEAD)}
3030
GIT_SHA1_SHORT=$(echo "$GIT_SHA1" | cut -c 1-7)
3131
GIT_BRANCH=${3:-$(git symbolic-ref -q --short HEAD || echo "unknown")}
32-
GIT_TAG=${4:-$(git describe --tags --exact-match || echo "")}
32+
GIT_TAG=${4:-$(git describe --tags --exact-match 2> /dev/null || echo "")}
3333

34-
IMAGE_NAME=${IMAGE_NAME:-ipfs/go-ipfs}
34+
IMAGE_NAME=${IMAGE_NAME:-ipfs/kubo}
35+
LEGACY_IMAGE_NAME=${LEGACY_IMAGE_NAME:-ipfs/go-ipfs}
3536

3637
echoImageName () {
3738
local IMAGE_TAG=$1
3839
echo "$IMAGE_NAME:$IMAGE_TAG"
40+
echo "$LEGACY_IMAGE_NAME:$IMAGE_TAG"
3941
}
4042

4143
if [[ $GIT_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+-rc ]]; then

cmd/ipfs/Rules.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ PATH := $(realpath $(d)):$(PATH)
1313
# DEPS_OO_$(d) += merkledag/pb/merkledag.pb.go namesys/pb/namesys.pb.go
1414
# DEPS_OO_$(d) += pin/internal/pb/header.pb.go unixfs/pb/unixfs.pb.go
1515

16-
$(d)_flags =-ldflags="-X "github.com/ipfs/go-ipfs".CurrentCommit=$(git-hash)"
16+
$(d)_flags =-ldflags="-X "github.com/ipfs/kubo".CurrentCommit=$(git-hash)"
1717

1818
$(d)-try-build $(IPFS_BIN_$(d)): GOFLAGS += $(cmd/ipfs_flags)
1919

@@ -42,7 +42,7 @@ CLEAN += $(COVER_BIN_$(d))
4242

4343
$(COVER_BIN_$(d)): GOTAGS += testrunmain
4444
$(COVER_BIN_$(d)): $(d) $$(DEPS_GO) ALWAYS
45-
$(eval TMP_PKGS := $(shell $(GOCC) list -f '{{range .Deps}}{{.}} {{end}}' $(go-flags-with-tags) ./cmd/ipfs | sed 's/ /\n/g' | grep ipfs/go-ipfs) $(call go-pkg-name,$<))
45+
$(eval TMP_PKGS := $(shell $(GOCC) list -f '{{range .Deps}}{{.}} {{end}}' $(go-flags-with-tags) ./cmd/ipfs | sed 's/ /\n/g' | grep ipfs/kubo) $(call go-pkg-name,$<))
4646
$(eval TMP_LIST := $(call join-with,$(comma),$(TMP_PKGS)))
4747
@echo $(GOCC) test $@ -c -covermode atomic -coverpkg ... $(go-flags-with-tags) ./$(@D) # for info
4848
@$(GOCC) test -o $@ -c -covermode atomic -coverpkg $(TMP_LIST) $(go-flags-with-tags) ./$(@D) 2>&1 | (grep -v 'warning: no packages being tested' || true)

cmd/ipfs/add_migrations.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ import (
99
"path/filepath"
1010

1111
files "github.com/ipfs/go-ipfs-files"
12-
"github.com/ipfs/go-ipfs/core"
13-
"github.com/ipfs/go-ipfs/core/coreapi"
14-
"github.com/ipfs/go-ipfs/repo/fsrepo/migrations"
15-
"github.com/ipfs/go-ipfs/repo/fsrepo/migrations/ipfsfetcher"
1612
coreiface "github.com/ipfs/interface-go-ipfs-core"
1713
"github.com/ipfs/interface-go-ipfs-core/options"
1814
ipath "github.com/ipfs/interface-go-ipfs-core/path"
15+
"github.com/ipfs/kubo/core"
16+
"github.com/ipfs/kubo/core/coreapi"
17+
"github.com/ipfs/kubo/repo/fsrepo/migrations"
18+
"github.com/ipfs/kubo/repo/fsrepo/migrations/ipfsfetcher"
1919
"github.com/libp2p/go-libp2p-core/peer"
2020
)
2121

@@ -36,7 +36,7 @@ func addMigrations(ctx context.Context, node *core.IpfsNode, fetcher migrations.
3636
if err != nil {
3737
return err
3838
}
39-
case *migrations.HttpFetcher, *migrations.RetryFetcher: // https://github.com/ipfs/go-ipfs/issues/8780
39+
case *migrations.HttpFetcher, *migrations.RetryFetcher: // https://github.com/ipfs/kubo/issues/8780
4040
// Add the downloaded migration files directly
4141
if migrations.DownloadDirectory != "" {
4242
var paths []string

cmd/ipfs/daemon.go

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@ import (
1515

1616
multierror "github.com/hashicorp/go-multierror"
1717

18-
version "github.com/ipfs/go-ipfs"
19-
utilmain "github.com/ipfs/go-ipfs/cmd/ipfs/util"
20-
oldcmds "github.com/ipfs/go-ipfs/commands"
21-
config "github.com/ipfs/go-ipfs/config"
22-
cserial "github.com/ipfs/go-ipfs/config/serialize"
23-
"github.com/ipfs/go-ipfs/core"
24-
commands "github.com/ipfs/go-ipfs/core/commands"
25-
"github.com/ipfs/go-ipfs/core/coreapi"
26-
corehttp "github.com/ipfs/go-ipfs/core/corehttp"
27-
corerepo "github.com/ipfs/go-ipfs/core/corerepo"
28-
libp2p "github.com/ipfs/go-ipfs/core/node/libp2p"
29-
nodeMount "github.com/ipfs/go-ipfs/fuse/node"
30-
fsrepo "github.com/ipfs/go-ipfs/repo/fsrepo"
31-
"github.com/ipfs/go-ipfs/repo/fsrepo/migrations"
32-
"github.com/ipfs/go-ipfs/repo/fsrepo/migrations/ipfsfetcher"
18+
version "github.com/ipfs/kubo"
19+
utilmain "github.com/ipfs/kubo/cmd/ipfs/util"
20+
oldcmds "github.com/ipfs/kubo/commands"
21+
config "github.com/ipfs/kubo/config"
22+
cserial "github.com/ipfs/kubo/config/serialize"
23+
"github.com/ipfs/kubo/core"
24+
commands "github.com/ipfs/kubo/core/commands"
25+
"github.com/ipfs/kubo/core/coreapi"
26+
corehttp "github.com/ipfs/kubo/core/corehttp"
27+
corerepo "github.com/ipfs/kubo/core/corerepo"
28+
libp2p "github.com/ipfs/kubo/core/node/libp2p"
29+
nodeMount "github.com/ipfs/kubo/fuse/node"
30+
fsrepo "github.com/ipfs/kubo/repo/fsrepo"
31+
"github.com/ipfs/kubo/repo/fsrepo/migrations"
32+
"github.com/ipfs/kubo/repo/fsrepo/migrations/ipfsfetcher"
3333
sockets "github.com/libp2p/go-socket-activation"
3434

3535
cmds "github.com/ipfs/go-ipfs-cmds"
@@ -801,7 +801,7 @@ func serveHTTPGateway(req *cmds.Request, cctx *oldcmds.Context) (<-chan error, e
801801
}
802802

803803
if len(cfg.Gateway.PathPrefixes) > 0 {
804-
log.Error("Support for X-Ipfs-Gateway-Prefix and Gateway.PathPrefixes is deprecated and will be removed in the next release. Please comment on the issue if you're using this feature: https://github.com/ipfs/go-ipfs/issues/7702")
804+
log.Error("Support for X-Ipfs-Gateway-Prefix and Gateway.PathPrefixes is deprecated and will be removed in the next release. Please comment on the issue if you're using this feature: https://github.com/ipfs/kubo/issues/7702")
805805
}
806806

807807
node, err := cctx.ConstructNode()

cmd/ipfs/debug.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"net/http"
55

6-
"github.com/ipfs/go-ipfs/profile"
6+
"github.com/ipfs/kubo/profile"
77
)
88

99
func init() {

0 commit comments

Comments
 (0)