diff --git a/pkg/versioning/versioning.go b/pkg/versioning/versioning.go index ba97e621d..593bce3e2 100644 --- a/pkg/versioning/versioning.go +++ b/pkg/versioning/versioning.go @@ -87,7 +87,7 @@ func GetArtifact(buildTool, buildDescriptorFilePath string, opts *Options, execR switch buildDescriptorFilePath { case "go.mod": - artifact = &GoMod{path: buildDescriptorFilePath} + artifact = &GoMod{path: buildDescriptorFilePath, fileExists: fileExists} break default: artifact = &Versionfile{path: buildDescriptorFilePath}