Search code examples
goheroku

GO with Heroku Deployments


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?


Solution

  • On heroku -> your project -> Settings -> Buildpacks, and add 'heroku/go'.

    Then execute in any terminal:

    heroku config:set GOVERSION=1.16