Skip to content

Commit

Permalink
Merge pull request #10 from withtally/feat/hard-arch
Browse files Browse the repository at this point in the history
feat(arch): force amd64 again
  • Loading branch information
jemilezzet authored Dec 20, 2023
2 parents e02213e + a7c0e0f commit a686e6c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions solc/solc.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ var platforms = map[string]string{
"windows": "windows",
}

var architectures = map[string]string{
"wasm": "wasm32",
"amd64": "amd64",
}
// var architectures = map[string]string{
// "wasm": "wasm32",
// "amd64": "amd64",
// }

var (
cache = configdir.New("withtally", "ethgen").QueryCacheFolder()
Expand Down Expand Up @@ -141,12 +141,12 @@ func resolve(vc *parser.VersionConstraint) (Build, error) {
return Build{}, fmt.Errorf("platform not supported: %s", runtime.GOOS)
}

arch, ok := architectures[runtime.GOARCH]
if !ok {
return Build{}, fmt.Errorf("architecture not supported: %s", runtime.GOARCH)
}
// arch, ok := architectures["amd64"]
// if !ok {
// return Build{}, fmt.Errorf("architecture not supported: %s", runtime.GOARCH)
// }

uri.Path = filepath.Join(platform+"-"+arch, "list.json")
uri.Path = filepath.Join(platform+"-amd64", "list.json")
res, err := http.Get(uri.String())
if err != nil {
return Build{}, fmt.Errorf("create solc list get request: %w", err)
Expand Down

0 comments on commit a686e6c

Please sign in to comment.