-
Notifications
You must be signed in to change notification settings - Fork 23
Conversation
@@ -1,3 +1,3 @@ | |||
{ | |||
"version": "v0.2.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be a patch version bump so people can upgrade and things will work, or minor so they don't have to follow us along to go-libipfs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue is that go-libipfs
have newer versions of libs which could break stuff.
For example if I import example.com@v1.0.0
and go-libipfs imports example.com@v1.1.0
, updating to go-ipfs-files@v0.2.1
will update example.com@v1.0.0
to example.com@v1.1.0
.
I don't really care about it but that why goreleaser is angry with you when you update go.mod and bump a patch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated to 0.3.0
Any ideas what's going on with |
WriteTo = files.WriteTo | ||
// Deprecated: moved to github.com/ipfs/go-libipfs/files | ||
NewFilter = files.NewFilter | ||
// Deprecated: moved to github.com/ipfs/go-libipfs/files | ||
NewLinkFile = files.NewLinkFile | ||
// Deprecated: moved to github.com/ipfs/go-libipfs/files | ||
ToSymlink = files.ToSymlink | ||
// Deprecated: moved to github.com/ipfs/go-libipfs/files | ||
NewMultiFileReader = files.NewMultiFileReader | ||
// Deprecated: moved to github.com/ipfs/go-libipfs/files | ||
NewFileFromPartReader = files.NewFileFromPartReader | ||
// Deprecated: moved to github.com/ipfs/go-libipfs/files | ||
NewBytesFile = files.NewBytesFile | ||
// Deprecated: moved to github.com/ipfs/go-libipfs/files | ||
NewReaderFile = files.NewReaderFile | ||
// Deprecated: moved to github.com/ipfs/go-libipfs/files | ||
NewReaderStatFile = files.NewReaderStatFile | ||
// Deprecated: moved to github.com/ipfs/go-libipfs/files | ||
NewReaderPathFile = files.NewReaderPathFile | ||
// Deprecated: moved to github.com/ipfs/go-libipfs/files | ||
NewSerialFile = files.NewSerialFile | ||
// Deprecated: moved to github.com/ipfs/go-libipfs/files | ||
NewSerialFileWithFilter = files.NewSerialFileWithFilter | ||
// Deprecated: moved to github.com/ipfs/go-libipfs/files | ||
FileEntry = files.FileEntry | ||
// Deprecated: moved to github.com/ipfs/go-libipfs/files | ||
NewMapDirectory = files.NewMapDirectory | ||
// Deprecated: moved to github.com/ipfs/go-libipfs/files | ||
NewSliceDirectory = files.NewSliceDirectory | ||
// Deprecated: moved to github.com/ipfs/go-libipfs/files | ||
NewTarWriter = files.NewTarWriter | ||
// Deprecated: moved to github.com/ipfs/go-libipfs/files | ||
ToFile = files.ToFile | ||
// Deprecated: moved to github.com/ipfs/go-libipfs/files | ||
ToDir = files.ToDir | ||
// Deprecated: moved to github.com/ipfs/go-libipfs/files | ||
FileFromEntry = files.FileFromEntry | ||
// Deprecated: moved to github.com/ipfs/go-libipfs/files | ||
DirFromEntry = files.DirFromEntry | ||
// Deprecated: moved to github.com/ipfs/go-libipfs/files | ||
Walk = files.Walk | ||
// Deprecated: moved to github.com/ipfs/go-libipfs/files | ||
NewWebFile = files.NewWebFile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I usually like to keep the old file structure (*only files that had public symbols).
This makes the review process much easier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I separated by commits. You can go back earlier and see. I'm also happy to revert if that's better
e9ee72c
to
dba31f6
Compare
dba31f6
to
3924115
Compare
@aschmahmann I think the problem with GoRelease is that functions are now variable. So instead of doing: NewMultiFileReader = files.NewMultiFileReader Maybe we should: func NewMultiFileReader(file Directory, form bool) *MultiFileReader {
return files.NewMultiFileReader(file, form)
} I don't think this would give any practical errors, as it should work fine. But that's the reason why goreleaser is complaining. I will change the version to 0.3.0 so we follow what we did with other repositories. Also, thanks for doing this! |
Suggested version: Changes in diff --git a/go.mod b/go.mod
index 3103656..c66bf30 100644
--- a/go.mod
+++ b/go.mod
@@ -1,15 +1,10 @@
module github.com/ipfs/go-ipfs-files
-require (
- github.com/crackcomm/go-gitignore v0.0.0-20170627025303-887ab5e44cc3
- github.com/stretchr/testify v1.7.0
- golang.org/x/sys v0.0.0-20190302025703-b6889370fb10
-)
+require github.com/ipfs/go-libipfs v0.4.0
require (
- github.com/davecgh/go-spew v1.1.0 // indirect
- github.com/pmezard/go-difflib v1.0.0 // indirect
- gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
+ github.com/crackcomm/go-gitignore v0.0.0-20170627025303-887ab5e44cc3 // indirect
+ golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab // indirect
)
go 1.18
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed, commit by commit. Thanks for this @aschmahmann! I'm merging and releasing as 0.3.0 for the reasons outlined by @Jorropo. I will archive this repo after the release is complete.
Plan is to rearchive this repo once this is done