Skip to content

Commit dadcdf3

Browse files
authored
node: migrate solana-go imports to foundation path (#4862)
Add replace directive for solana-foundation's version of solana-go. This module is still exported by them under the `gagliardetto` name so we can't change the actual import directives in the files that use this package. Verification that v1.8.4 is identical across both repos: git ls-remote --tags https://github.com/gagliardetto/solana-go.git refs/tags/v1.8.4 git ls-remote --tags https://github.com/solana-foundation/solana-go.git refs/tags/v1.8.4 Both resolve to: 834605a343769985bdad2bd0c8ba7dbf7ff7ba7d go mod download -json github.com/gagliardetto/solana-go@v1.8.4 go mod download -json github.com/solana-foundation/solana-go@v1.8.4 Both report Origin.Hash: 834605a343769985bdad2bd0c8ba7dbf7ff7ba7d diff -qr \ "$HOME/go/pkg/mod/github.com/gagliardetto/solana-go@v1.8.4" \ "$HOME/go/pkg/mod/github.com/solana-foundation/solana-go@v1.8.4" No diff output confirms the extracted module trees are identical.
1 parent 2771cd0 commit dadcdf3

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

node/go.mod

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,11 @@ require (
381381
// https://github.com/cosmos/cosmos-sdk/issues/10925 for more details.
382382
replace github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1
383383

384+
// The solana-foundation repository still declares its module identity as
385+
// github.com/gagliardetto/solana-go. Keep importing the declared module path
386+
// until a future solana-foundation version updates its go.mod module path.
387+
replace github.com/gagliardetto/solana-go => github.com/solana-foundation/solana-go v1.8.4
388+
384389
replace github.com/wormhole-foundation/wormhole/sdk => ../sdk
385390

386391
replace github.com/wormhole-foundation/wormchain => ../wormchain

node/go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3922,6 +3922,8 @@ github.com/snikch/goodman v0.0.0-20171125024755-10e37e294daa/go.mod h1:oJyF+mSPH
39223922
github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM=
39233923
github.com/soheilhy/cmux v0.1.5 h1:jjzc5WVemNEDTLwv9tlmemhC73tI08BNOIGwBOo10Js=
39243924
github.com/soheilhy/cmux v0.1.5/go.mod h1:T7TcVDs9LWfQgPlPsdngu6I6QIoyIFZDDC6sNE1GqG0=
3925+
github.com/solana-foundation/solana-go v1.8.4 h1:gY+bAzgylupRGe0BVr1ZaFKDVMfny25KWr8XE30hZHA=
3926+
github.com/solana-foundation/solana-go v1.8.4/go.mod h1:i+7aAyNDTHG0jK8GZIBSI4OVvDqkt2Qx+LklYclRNG8=
39253927
github.com/sonatard/noctx v0.0.1/go.mod h1:9D2D/EoULe8Yy2joDHJj7bv3sZoq9AaSb8B4lqBjiZI=
39263928
github.com/sony/gobreaker v0.4.1/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY=
39273929
github.com/sourcegraph/annotate v0.0.0-20160123013949-f4cad6c6324d/go.mod h1:UdhH50NIW0fCiwBSr0co2m7BnFLdv4fQTgdqdJTHFeE=

0 commit comments

Comments
 (0)