Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release: v0.26.0 [skip changelog] #10287

Merged
merged 28 commits into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
1a89365
chore: update version
hacdias Dec 6, 2023
8c4bdd8
fix: allow daemon to start correctly if the API is null (#10062)
Jorropo Dec 11, 2023
5c31db3
commands: remove several deprecated commands
hacdias Dec 12, 2023
3932fdf
chore: bump to go-libp2p 0.32.2
hacdias Dec 13, 2023
78e2fab
docs: add detail to NOpfs instructions in content-blocking.md
bumblefudge Dec 14, 2023
133feb6
Merge branch 'master' into merge-release-v0.25.0
Jorropo Dec 14, 2023
0fdd979
Merge pull request #10260 from ipfs/merge-release-v0.25.0
Jorropo Dec 14, 2023
86b73f6
feat: cmd/ipfs: Allow passing custom BuildEnv to main
magik6k Mar 30, 2023
b5dddf6
feat: cmd/ipfs: Make it possible to depend on cmd/ipfs
magik6k Mar 30, 2023
a8a1278
feat: cmd/ipfs: Nicer to use BuildEnv
magik6k Mar 30, 2023
0e83c3f
remove old main function
Stebalien Nov 14, 2023
e503c84
feat: unexport unneeded functions and add comments
aschmahmann Dec 20, 2023
33b785e
docs(customizing.md): add kubo binary imports description
aschmahmann Dec 19, 2023
287444b
chore: update changelog
aschmahmann Dec 19, 2023
f71ae39
docs: fix broken link in HTTP RPC client doc (#10267)
nicholasericksen Dec 21, 2023
58ebfd2
Merge pull request #10219 from ipfs/magiks-ribs-hacks
aschmahmann Dec 22, 2023
1649469
chore: update go-libp2p-asn-util
Jorropo Dec 29, 2023
765cffe
build,docker: add support for riscv64
Jorropo Dec 29, 2023
a8a6bbe
feat: support optional pin names (#10261)
hacdias Jan 4, 2024
4a8badf
Revert "build,docker: add support for riscv64"
hacdias Jan 4, 2024
b215d73
chore: update otlp
Jorropo Jan 4, 2024
8a42186
feat(pinning): allow for overwriting pin name
hacdias Jan 8, 2024
2f91074
ci: fix helia interop
Jorropo Jan 9, 2024
2905b59
chore: update boxo
hacdias Jan 10, 2024
02ea518
chore: boxo v0.17.0
hacdias Jan 10, 2024
b3c251a
chore: update version
hacdias Jan 11, 2024
7e80522
chore: update changelog
hacdias Jan 22, 2024
dfec50d
chore: update version
hacdias Jan 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ jobs:
defaults:
run:
shell: bash
strategy:
matrix:
repo-to-test-against: ["helia", "helia-ipns", "helia-unixfs", "helia-car", "helia-dag-json", "helia-dag-cbor", "helia-json", "helia-mfs"] # this needs to be manually kept in sync as new helia tests are written
steps:
- uses: actions/setup-node@v3
with:
Expand All @@ -69,17 +66,19 @@ jobs:
- uses: actions/cache@v3
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-${{ github.job }}-${{ matrix.repo-to-test-against }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-${{ github.job }}-${{ matrix.repo-to-test-against }}-
key: ${{ runner.os }}-${{ github.job }}-helia-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-${{ github.job }}-helia-
- run: sudo apt update
- run: sudo apt install -y libxkbcommon0 libxdamage1 libgbm1 libpango-1.0-0 libcairo2 # dependencies for playwright
- uses: actions/checkout@v4
with:
repository: ipfs/${{ matrix.repo-to-test-against }}
fetch-depth: 0
repository: ipfs/helia
fetch-depth: 1
path: interop
ref: 'ea5533c794df844c9fb9812e85e2f5e6af09efeb' # temporary while this commit is being released
- name: Checkout latest tag
run: |
exit 0 # temporary while ea5533c794df844c9fb9812e85e2f5e6af09efeb is released
export TAG="$(git describe --tags --abbrev=0)"
echo "Running tests against: $TAG"
git checkout "$TAG"
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Kubo Changelogs

- [v0.26](docs/changelogs/v0.26.md)
- [v0.25](docs/changelogs/v0.25.md)
- [v0.24](docs/changelogs/v0.24.md)
- [v0.23](docs/changelogs/v0.23.md)
Expand Down
8 changes: 7 additions & 1 deletion client/rpc/pin.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
type pin struct {
path path.ImmutablePath
typ string
name string
err error
}

Expand All @@ -37,6 +38,10 @@
return p.path
}

func (p pin) Name() string {
return p.name

Check warning on line 42 in client/rpc/pin.go

View check run for this annotation

Codecov / codecov/patch

client/rpc/pin.go#L41-L42

Added lines #L41 - L42 were not covered by tests
}

func (p pin) Type() string {
return p.typ
}
Expand All @@ -53,6 +58,7 @@

type pinLsObject struct {
Cid string
Name string
Type string
}

Expand Down Expand Up @@ -102,7 +108,7 @@
}

select {
case ch <- pin{typ: out.Type, path: path.FromCid(c)}:
case ch <- pin{typ: out.Type, name: out.Name, path: path.FromCid(c)}:
case <-ctx.Done():
return
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package kubo

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion cmd/ipfs/daemon.go → cmd/ipfs/kubo/daemon.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package kubo

import (
"errors"
Expand Down Expand Up @@ -676,9 +676,9 @@
listeners = append(listeners, apiLis)
}

if len(cfg.API.Authorizations) > 0 && len(listeners) > 0 {
fmt.Printf("RPC API access is limited by the rules defined in API.Authorizations\n")
}

Check warning on line 681 in cmd/ipfs/kubo/daemon.go

View check run for this annotation

Codecov / codecov/patch

cmd/ipfs/kubo/daemon.go#L679-L681

Added lines #L679 - L681 were not covered by tests

for _, listener := range listeners {
// we might have listened to /tcp/0 - let's see what we are listing on
Expand Down Expand Up @@ -727,11 +727,11 @@
return nil, fmt.Errorf("serveHTTPApi: ConstructNode() failed: %s", err)
}

if len(listeners) > 0 {
// Only add an api file if the API is running.
if err := node.Repo.SetAPIAddr(rewriteMaddrToUseLocalhostIfItsAny(listeners[0].Multiaddr())); err != nil {
return nil, fmt.Errorf("serveHTTPApi: SetAPIAddr() failed: %w", err)
}

Check warning on line 734 in cmd/ipfs/kubo/daemon.go

View check run for this annotation

Codecov / codecov/patch

cmd/ipfs/kubo/daemon.go#L730-L734

Added lines #L730 - L734 were not covered by tests
}

errc := make(chan error)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//go:build linux
// +build linux

package main
package kubo

import (
daemon "github.com/coreos/go-systemd/v22/daemon"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//go:build !linux
// +build !linux

package main
package kubo

func notifyReady() {}

Expand Down
2 changes: 1 addition & 1 deletion cmd/ipfs/debug.go → cmd/ipfs/kubo/debug.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package kubo

import (
"net/http"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package kubo

import (
"context"
Expand Down
4 changes: 2 additions & 2 deletions cmd/ipfs/init.go → cmd/ipfs/kubo/init.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package kubo

import (
"context"
Expand Down Expand Up @@ -252,7 +252,7 @@

// pin recursively because this might already be pinned
// and doing a direct pin would throw an error in that case
err = nd.Pinning.Pin(ctx, emptyDir, true)
err = nd.Pinning.Pin(ctx, emptyDir, true, "")

Check warning on line 255 in cmd/ipfs/kubo/init.go

View check run for this annotation

Codecov / codecov/patch

cmd/ipfs/kubo/init.go#L255

Added line #L255 was not covered by tests
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/ipfs/ipfs.go → cmd/ipfs/kubo/ipfs.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package kubo

import (
commands "github.com/ipfs/kubo/core/commands"
Expand Down
2 changes: 1 addition & 1 deletion cmd/ipfs/pinmfs.go → cmd/ipfs/kubo/pinmfs.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package kubo

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion cmd/ipfs/pinmfs_test.go → cmd/ipfs/kubo/pinmfs_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package kubo

import (
"context"
Expand Down
Loading
Loading