Skip to content

Commit

Permalink
Merge pull request #257 from ipfs/release-v0.8.0
Browse files Browse the repository at this point in the history
Release v0.8.0
  • Loading branch information
guseggert authored Apr 5, 2023
2 parents 085ed9d + 0324949 commit f2bb0c8
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 2 deletions.
65 changes: 65 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [0.8.0] - 2023-04-05
### Added

- Migrated repositories into Boxo
- github.com/ipfs/interface-go-ipfs-core => ./coreiface
- github.com/ipfs/go-pinning-service-http-client => ./pinning/remote/client
- github.com/ipfs/go-path => ./path
- github.com/ipfs/go-namesys => ./namesys
- github.com/ipfs/go-mfs => ./mfs
- github.com/ipfs/go-ipfs-provider => ./provider
- github.com/ipfs/go-ipfs-pinner => ./pinning/pinner
- github.com/ipfs/go-ipfs-keystore => ./keystore
- github.com/ipfs/go-filestore => ./filestore
- github.com/ipfs/go-ipns => ./ipns
- github.com/ipfs/go-blockservice => ./blockservice
- github.com/ipfs/go-ipfs-chunker => ./chunker
- github.com/ipfs/go-fetcher => ./fetcher
- github.com/ipfs/go-ipfs-blockstore => ./blockstore
- github.com/ipfs/go-ipfs-posinfo => ./filestore/posinfo
- github.com/ipfs/go-ipfs-util => ./util
- github.com/ipfs/go-ipfs-ds-help => ./datastore/dshelp
- github.com/ipfs/go-verifcid => ./verifcid
- github.com/ipfs/go-ipfs-exchange-offline => ./exchange/offline
- github.com/ipfs/go-ipfs-routing => ./routing
- github.com/ipfs/go-ipfs-exchange-interface => ./exchange
- github.com/ipfs/go-unixfs => ./ipld/unixfs
- github.com/ipfs/go-merkledag => ./ipld/merkledag
- github.com/ipld/go-car => ./ipld/car
- 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
- Added a check to ensure the migration tool is only run in a Git repository (with an optional override flag)
- Added tracing and metrics to the refactored gateway for its IPFS backend


### Changed

- Removed a mention of "bitswap" in blockservice debug logs
- 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)
- Remove a busyloop in blockservice getBlocks by removing batching when caching

### Deprecated

None

### Removed

None

### Fixed

- Ensure dag-cbor/json codecs are registered in the gateway handler
- Refactor the Gateway API to operate on higher level semantics
- Fixed a panic in the gateway handler when returning errors

### Security

None
36 changes: 35 additions & 1 deletion cmd/boxo-migrate/boxomigrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"log"
"os"
"path/filepath"
"strings"

migrate "github.com/ipfs/boxo/cmd/boxo-migrate/internal"
Expand Down Expand Up @@ -55,9 +56,14 @@ func main() {
&cli.BoolFlag{
Name: "dryrun",
},
&cli.BoolFlag{
Name: "force",
Usage: "run even if no .git folder is found",
},
},
Action: func(clictx *cli.Context) error {
dryrun := clictx.Bool("dryrun")
force := clictx.Bool("force")
configFile := clictx.String("config")

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

fmt.Printf("\n\n")

if !force {
p, err := os.Getwd()
if err != nil {
return fmt.Errorf("failed to fetch current working directory: %w", err)
}

for {
g := filepath.Join(p, ".git")
_, err := os.Stat(g)
if err == nil {
break
}
newP := filepath.Dir(p)
if p == newP {
return fmt.Errorf(`
⚠️ Version Control System Check ⚠️
We couldn't locate a .git folder in any parent paths. We strongly recommend
using a Version Control System to help you easily compare and revert to a
previous state if needed, as this tool doesn't have an undo feature.
If you're using a different VCS or like to live dangerously, you can bypass this
check by adding the --force flag.`)
}
p = newP
}
}

if !dryrun {
err := migrator.GoGet("github.com/ipfs/boxo@v0.8.0-rc3")
err := migrator.GoGet("github.com/ipfs/boxo@v0.8.0")
if err != nil {
return err
}
Expand Down
1 change: 1 addition & 0 deletions cmd/boxo-migrate/staticcheck.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
checks = ["-ST1005"]
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "v0.8.0-rc4"
"version": "v0.8.0"
}

0 comments on commit f2bb0c8

Please sign in to comment.