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

feat: add consumer migration tool #226

Merged
merged 18 commits into from
Mar 27, 2023
Merged

Conversation

guseggert
Copy link
Contributor

No description provided.

go.mod Outdated Show resolved Hide resolved
guseggert and others added 14 commits March 27, 2023 16:14
This CLI tool rewrites Go source files to change import paths from
archived repos to their new locations in go-libipfs.

This really only works seamlessly if the code has not been refactored
since being moved into go-libipfs.
Cases like this "github.com/ipfs/go-unixfsnode" would match "github.com/ipfs/go-unixfs" because the prefix match.
This now properly checks that this ends properly.
- 6414ddb
- d905113

Where both lost in the 73b4310 
refactor. Bringing them back.
This is for files that use `package packagename_test` to declare a 
segregated test package in the same folder.
cmd/migrate/internal/migrator.go Show resolved Hide resolved
cmd/migrate/internal/migrator_test.go Outdated Show resolved Hide resolved
@guseggert guseggert force-pushed the feat/consumer-migration-tool branch from 9e95279 to 0882510 Compare March 27, 2023 20:18
This is to minimize the dependencies that are introduced by the CLI,
such as urfave/cli/v2 which is not necessary for boxo as a library.
@codecov
Copy link

codecov bot commented Mar 27, 2023

Codecov Report

Merging #226 (4392089) into main (143876a) will increase coverage by 0.15%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #226      +/-   ##
==========================================
+ Coverage   48.11%   48.27%   +0.15%     
==========================================
  Files         267      267              
  Lines       32583    32583              
==========================================
+ Hits        15677    15729      +52     
+ Misses      15241    15201      -40     
+ Partials     1665     1653      -12     

see 9 files with indirect coverage changes

@guseggert guseggert force-pushed the feat/consumer-migration-tool branch from fd9d322 to 4392089 Compare March 27, 2023 20:55
@Jorropo Jorropo marked this pull request as ready for review March 27, 2023 21:20
@guseggert guseggert force-pushed the feat/consumer-migration-tool branch from 4392089 to 2ff161f Compare March 27, 2023 21:20
@guseggert guseggert merged commit e1d6c48 into main Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants