'ElasticBeanstalk failing to build Go application with modules with no explanation
The environment was creating with all the defaults and the sample application
I am trying to launch the following setup on ElasticBeanstalk
application.go
go.mod
go.sum
application.go consists of the following
package main
import (
"os"
"github.com/gofiber/fiber/v2"
)
func main() {
app := fiber.New()
app.Get("/", func(c *fiber.Ctx) error {
return c.SendString("Hello World!")
})
app.Listen(":" + os.Getenv("PORT"))
}
I zip these files and upload it directly into my environment; this fails without any details as to why.
This is the complete log https://pastebin.com/F8iRUwhV
It works perfectly if you don't use go modules. I can't find anything in the documentation related to this.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
