Hello i am currently running into a problem with using Heroku! It finds all my dependency's until
build project: cannot load io/fs: cannot find module providing package io/fs
I have the vendor directory on my github repo but it just wont build?
CodePudding user response:
Per @jimb, you're likely using an earlier than Go 1.16 version.
fs became available with Go 1.16:
https://pkg.go.dev/io/fs?tab=versions
Check
go version
And you go.mod Go version.
CodePudding user response:
On heroku -> your project -> Settings -> Buildpacks, and add 'heroku/go'.
Then execute in any terminal:
heroku config:set GOVERSION=1.16
