Hacker News new | past | comments | ask | show | jobs | submit login

I have a Go project that imports IPFS and libp2p libraries. What's the recommended way of upgrading those dependencies?



The release notes contain a pretty extensive list of what APIs have changed.

The path to upgrade the dependencies is probably to run `go get -u <dep>` for the direct dependencies you're including, and then fixing errors that pop up from doing so.


Depends what exactly you are importing and for what. I suggest you ask in the forums and post a link to your project. go get -u is dangerous as it updates all subdependencies used to latest.

Usually take go-ipfs's go.mod as a guide on what versions to use.


>go get -u is dangerous as it updates all subdependencies used to latest

Yes, this is the problem I initially had; I would end up with a host of incompatible deps (leading me to wonder what the point of go.mod even was ... but I digress...).

Sounds like this is going to be one of those super fun dependency hack-jobs :C

Ah well, this is the price to pay for playing with beta software!




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: