Skip to content

Commit

Permalink
Fixed module path beeing incorrect.
Browse files Browse the repository at this point in the history
  • Loading branch information
Willena committed Jul 1, 2021
1 parent 09d8a47 commit bf2bc11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gomodule/zip.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func ZipModule(filesystem billy.Filesystem, module *GoModule) (io.Reader, error)
w := zip.NewWriter(buf)
// Add some files to the archive.

err := addFiles(w, filesystem, filesystem.Root(), fmt.Sprintf("%s@%s", module, module.Version.String()))
err := addFiles(w, filesystem, filesystem.Root(), fmt.Sprintf("%s@%s", module.Path, module.Version.String()))
if err != nil {
logger.Error("Error while creating zip", zap.Error(err))
return nil, err
Expand Down

0 comments on commit bf2bc11

Please sign in to comment.