Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Return empty python packages if dir does not exist. #5132

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

preslavgerchev
Copy link
Contributor

No description provided.

@@ -210,8 +208,9 @@ func collectPythonPackages(runtime *plugin.Runtime, fs afero.Fs, path string) ([

fileList, err := afs.ReadDir(path)
if err != nil {
if !os.IsNotExist(err) {
if os.IsNotExist(err) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the ! felt wrong to me, i think this should be just if os.IsNotExist instead of if !os...

Copy link
Contributor

Test Results

3 206 tests  ±0   3 202 ✅ ±0   1m 40s ⏱️ -8s
  385 suites ±0       4 💤 ±0 
   29 files   ±0       0 ❌ ±0 

Results for commit 55bbe7b. ± Comparison against base commit b3c787a.

Copy link
Contributor

@czunker czunker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Thanks @preslavgerchev

@preslavgerchev preslavgerchev merged commit a6b5aed into main Jan 29, 2025
17 checks passed
@preslavgerchev preslavgerchev deleted the preslav/fix-python-err branch January 29, 2025 09:59
@github-actions github-actions bot locked and limited conversation to collaborators Jan 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants