I'm trying to deploy a Go Web application using mux for routing, onto Cloud Foundry. My application contains a couple of other dependencies as well, mentioned below. However, there is a problem with either the go.mod file, the manifest file, or the gorilla/mux repository's go.mod file (which is highly unlikely).
This is the go.mod file that's created on entering go mod init and then go build .
module deployment_automation_tool
go 1.15
require (
github.com/gorilla/mux v1.8.0
github.com/jinzhu/gorm v1.9.16
github.com/mattn/go-sqlite3 v1.14.6
)
This is the manifest:
---
applications:
- name: deployment_automation_tool
buildpacks:
- go_buildpack
env:
GOPACKAGENAME : deployment_automation_tool
However, I keep getting this error:
**ERROR** problem retrieving main package name: go: github.com/gorilla/[email protected]: reading github.com/gorilla/mux/go.mod at revision v1.8.0: unknown revision v1.8.0
**ERROR** Unable to determine import path: exit status 1
Failed to compile droplet: Failed to run finalize script: exit status 12
Exit status 223