storj / uplink

Storj network Go library
MIT License
115 stars 18 forks source link

could not import storj.io/uplink (no required module provides package \"storj.io/uplink\") #126

Closed munjal-p closed 1 year ago

munjal-p commented 1 year ago

I tried to implement the uplink library to upload file to storj using my go program but getting dependency error mentioned in the subject. Detail stack trace is given below.

[{ "resource": "/D:/GoLang/testGoModule/ul/main.go", "owner": "_generated_diagnostic_collectionname#1", "code": { "value": "BrokenImport", "target": { "$mid": 1, "external": "https://pkg.go.dev/golang.org/x/tools/internal/typesinternal#BrokenImport", "path": "/golang.org/x/tools/internal/typesinternal", "scheme": "https", "authority": "pkg.go.dev", "fragment": "BrokenImport" } }, "severity": 8, "message": "could not import storj.io/uplink (no required module provides package \"storj.io/uplink\")", "source": "compiler", "startLineNumber": 11, "startColumn": 2, "endLineNumber": 11, "endColumn": 19 }]

I followed the steps given in the libuplink documentation at this URL

I am adding it using go get storj.io/uplink, still getting error.

Any help would be appreciated.

munjal-p commented 1 year ago

It was a CLI error from my end.