golang errors

go: finding module for package github.org/companyname/go-tools/filesystem
go: finding module for package github.org/companyname/go-tools/secure
go: downloading github.org/companyname/go-tools v0.0.0-20210927040446-cd2beea08150
/go/pkg/mod/github.org/companyname/logs@v0.0.0-20181005073623-355616321e93/log.go:9:2: github.org/companyname/go-tools@v0.0.0-20210927040446-cd2beea08150: verifying module: github.org/companyname/go-tools@v0.0.0-20210927040446-cd2beea08150: reading https://sum.golang.org/lookup/github.org/companyname/go-tools@v0.0.0-20210927040446-cd2beea08150: 410 Gone
server response:
not found: github.org/companyname/go-tools@v0.0.0-20210927040446-cd2beea08150: reading https://api.github.org/2.0/repositories/companyname/go-tools?fields=scm: 403 Forbidden
server response: Access denied. You must have write or admin access.
/go/pkg/mod/github.org/companyname/logs@v0.0.0-20181005073623-355616321e93/log.go:10:2: github.org/companyname/go-tools@v0.0.0-20210927040446-cd2beea08150: verifying module: github.org/companyname/go-tools@v0.0.0-20210927040446-cd2beea08150: reading https://sum.golang.org/lookup/github.org/companyname/go-tools@v0.0.0-20210927040446-cd2beea08150: 410 Gone
server response:
not found: github.org/companyname/go-tools@v0.0.0-20210927040446-cd2beea08150: reading https://api.github.org/2.0/repositories/companyname/go-tools?fields=scm: 403 Forbidden
server response: Access denied. You must have write or admin access.

    Solution 
    touch ~/.netrc
    chmod 600 ~/.netrc
    machine github.org login shridhar.patil@companyname.com password somepassword
    export GOPRIVATE=github.org/companyname/*

Leave a Reply

Your email address will not be published. Required fields are marked *