-
Notifications
You must be signed in to change notification settings - Fork 467
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
gx-go rewrite and undo should yield the same result #663
Comments
@phritz suggested I share a related After #695 was merged I experienced several problems getting my local setup to build master. After running smartdeps I saw build errors stemming from non-gxed packages that the project imports as gx packages. These build errors were all expected from having improperly versioned packages interacting. The root issue was that a gx package was being improperly rewritten so that these github.com dvc imports were leaking into the build dependencies. With help from @whyrusleeping I realized that my version of gx-go was compiled with the wrong version of go. This led to source files with type aliases ( After rebuilding gx-go and rewriting the filecoin project I still had build errors of the same type as before. Upon closer inspection gx-go rewrite was not actually rewriting certain github dvc imports to gx imports. Specifically the libp2p/go-libp2p/libp2p.go's Finally I was still left with a few build errors due to the gxed go-reuseport dependency: go-sockaddr not being properly rewritten. Curiously I could not resolve the errors by rewriting from go-filecoin but could resolve them by running A few things stood out about the imports that could not be rewritten as expected. All such imports resided in a file that included a type alias and therefore was not rewritten properly when I was using the out of date I am not sure of the exact mechanism behind For completeness here is the output of
|
set the go version in the package.json like we do in ipfs here: https://github.com/ipfs/go-ipfs/blob/master/package.json#L7 |
As for the original issue, i fixed almost all of these. Until we can get the cbor updates pushed through, a relatively simple solution is just running a sed over the whole directory replacing QmWrbExtUaQQHjJ8FVVDAWj5o1MRAELDUV3VmoQsZHHb6L with QmSyK1ZiAP98YvnxsTfQpb669V2xeTHRbG4Y6fgKS3vVSd |
we are moving to go modules, no longer relevant |
gx-go rewrite --undo
gx-go rewrite
This is the result of dupe dependencies. You can see dups by running
gx deps dupes
. The task here is to update our deps, or the deps of our deps, so that the packages that use a different version in step 4 above use the same version. That is, update our depds or our deps deps such that undo and then rewrite again is a nop.This is vaguely related to #599 as it was noticed in #643.
The text was updated successfully, but these errors were encountered: