cloudsmith-io / cloudsmith-io/gopack

Running gopack without a directory argument raises lstat error

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
2
Forks
2
PR merge metrics
No merged PRs in 30d

Description

When running gopack only with a version number inside your module directory, it will try to call [filepath.Walk() with an empty string](https://github.com/cloudsmith-io/gopack/blob/5645b31977bd42af4e8cbb08fcad224c9068fae5/archive/archive.go#L26) which causes a lstat error.

This is easily fixable by checking if dir is an empty string and setting it to "." in root.go.

I will also open a PR for this change for convenience, feel free to accept/close it :)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.