You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The hardcoded string starts with "/go", it is duplicate because it is returned also from "GOPATH"
I tested the code fixing these issues and it works.
[EDIT]
I exported GOPATH and it works now , also with os.Getenv("GOPATH"). It remains only the second issue.
For the first one maybe it could be useful to add a check to set default path in case of empty string returned, exactly how the stackoverflow example above.
The text was updated successfully, but these errors were encountered:
Hi there,
I found an issue when i try to retrieve
configFile
, initialized insidescraper.go
scraper.go
, Row 55:configFile := os.Getenv("GOPATH") + "/go/src/github.com/diadata-org/api-golang/exchange-scrapers/config/exchange-scrapers.json"
There are two issues:
os.Getenv("GOPATH")
can return empty string, from go 1.8.tested in Mac OS.build.Default.GOPATH
I tested the code fixing these issues and it works.
[EDIT]
os.Getenv("GOPATH")
. It remains only the second issue.The text was updated successfully, but these errors were encountered: