Skip to content

func run --container=false fails for go with external modules #2846

@jrangelramos

Description

@jrangelramos

Adding an external module to your go functions cause failure to run without container

$ func create -l go myfunc && cd myfunc
...
$ go get github.com/jrangelramos/gohello             
go: added github.com/jrangelramos/gohello v0.0.0-20250528012604-4fece27014c1
...
$ func run --container=false
f/handle.go:7:2: missing go.sum entry for module providing package github.com/jrangelramos/gohello/hello (imported by function); to add:
	go get function@v0.0.0-00010101000000-000000000000
Error: exit status 1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions