NewUser
NewUser

Reputation: 105

How to deploy a Go app using local package

I'm trying to upload my Go app but the problem is that I get an error because I have made modifications to the package files

The imports from Github lie in C:\Users\Myuser\go\pkg\mod but when I try to upload my Go App, Heroku imports from Github instead of uploading the local modified files. Is there any way to upload my local packages instead of importing them when I deploy the app?

Upvotes: 1

Views: 181

Answers (1)

Akinwale
Akinwale

Reputation: 219

You could try building the app with the "-mod vendor" option so it uses the vendored files instead of pulling the git dependencies

go build -mod vendor

Upvotes: 2

Related Questions