Skip to content

Commit f2bb0c8

Browse files
authored
Merge pull request #257 from ipfs/release-v0.8.0
Release v0.8.0
2 parents 085ed9d + 0324949 commit f2bb0c8

File tree

4 files changed

+102
-2
lines changed

4 files changed

+102
-2
lines changed

CHANGELOG.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [Unreleased]
9+
10+
## [0.8.0] - 2023-04-05
11+
### Added
12+
13+
- Migrated repositories into Boxo
14+
- github.com/ipfs/interface-go-ipfs-core => ./coreiface
15+
- github.com/ipfs/go-pinning-service-http-client => ./pinning/remote/client
16+
- github.com/ipfs/go-path => ./path
17+
- github.com/ipfs/go-namesys => ./namesys
18+
- github.com/ipfs/go-mfs => ./mfs
19+
- github.com/ipfs/go-ipfs-provider => ./provider
20+
- github.com/ipfs/go-ipfs-pinner => ./pinning/pinner
21+
- github.com/ipfs/go-ipfs-keystore => ./keystore
22+
- github.com/ipfs/go-filestore => ./filestore
23+
- github.com/ipfs/go-ipns => ./ipns
24+
- github.com/ipfs/go-blockservice => ./blockservice
25+
- github.com/ipfs/go-ipfs-chunker => ./chunker
26+
- github.com/ipfs/go-fetcher => ./fetcher
27+
- github.com/ipfs/go-ipfs-blockstore => ./blockstore
28+
- github.com/ipfs/go-ipfs-posinfo => ./filestore/posinfo
29+
- github.com/ipfs/go-ipfs-util => ./util
30+
- github.com/ipfs/go-ipfs-ds-help => ./datastore/dshelp
31+
- github.com/ipfs/go-verifcid => ./verifcid
32+
- github.com/ipfs/go-ipfs-exchange-offline => ./exchange/offline
33+
- github.com/ipfs/go-ipfs-routing => ./routing
34+
- github.com/ipfs/go-ipfs-exchange-interface => ./exchange
35+
- github.com/ipfs/go-unixfs => ./ipld/unixfs
36+
- github.com/ipfs/go-merkledag => ./ipld/merkledag
37+
- github.com/ipld/go-car => ./ipld/car
38+
- Added a migration tool to aid in migrating from the migrated repositories to Boxo, see the documentation here: https://github.com/ipfs/boxo/blob/main/README.md#migrating-to-boxo
39+
- Added a check to ensure the migration tool is only run in a Git repository (with an optional override flag)
40+
- Added tracing and metrics to the refactored gateway for its IPFS backend
41+
42+
43+
### Changed
44+
45+
- Removed a mention of "bitswap" in blockservice debug logs
46+
- Changed the Bitswap message package from "bitswap.message.pb" to "bitswap.message.v1.pb" to avoid protobuf panics due to duplicate registration with [go-bitswap](https://github.com/ipfs/go-bitswap)
47+
- Remove a busyloop in blockservice getBlocks by removing batching when caching
48+
49+
### Deprecated
50+
51+
None
52+
53+
### Removed
54+
55+
None
56+
57+
### Fixed
58+
59+
- Ensure dag-cbor/json codecs are registered in the gateway handler
60+
- Refactor the Gateway API to operate on higher level semantics
61+
- Fixed a panic in the gateway handler when returning errors
62+
63+
### Security
64+
65+
None

cmd/boxo-migrate/boxomigrate.go

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"fmt"
55
"log"
66
"os"
7+
"path/filepath"
78
"strings"
89

910
migrate "github.com/ipfs/boxo/cmd/boxo-migrate/internal"
@@ -55,9 +56,14 @@ func main() {
5556
&cli.BoolFlag{
5657
Name: "dryrun",
5758
},
59+
&cli.BoolFlag{
60+
Name: "force",
61+
Usage: "run even if no .git folder is found",
62+
},
5863
},
5964
Action: func(clictx *cli.Context) error {
6065
dryrun := clictx.Bool("dryrun")
66+
force := clictx.Bool("force")
6167
configFile := clictx.String("config")
6268

6369
migrator, err := buildMigrator(dryrun, configFile)
@@ -67,8 +73,36 @@ func main() {
6773

6874
fmt.Printf("\n\n")
6975

76+
if !force {
77+
p, err := os.Getwd()
78+
if err != nil {
79+
return fmt.Errorf("failed to fetch current working directory: %w", err)
80+
}
81+
82+
for {
83+
g := filepath.Join(p, ".git")
84+
_, err := os.Stat(g)
85+
if err == nil {
86+
break
87+
}
88+
newP := filepath.Dir(p)
89+
if p == newP {
90+
return fmt.Errorf(`
91+
⚠️ Version Control System Check ⚠️
92+
93+
We couldn't locate a .git folder in any parent paths. We strongly recommend
94+
using a Version Control System to help you easily compare and revert to a
95+
previous state if needed, as this tool doesn't have an undo feature.
96+
97+
If you're using a different VCS or like to live dangerously, you can bypass this
98+
check by adding the --force flag.`)
99+
}
100+
p = newP
101+
}
102+
}
103+
70104
if !dryrun {
71-
err := migrator.GoGet("github.com/ipfs/boxo@v0.8.0-rc3")
105+
err := migrator.GoGet("github.com/ipfs/boxo@v0.8.0")
72106
if err != nil {
73107
return err
74108
}

cmd/boxo-migrate/staticcheck.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
checks = ["-ST1005"]

version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": "v0.8.0-rc4"
2+
"version": "v0.8.0"
33
}

0 commit comments

Comments
 (0)