-
Notifications
You must be signed in to change notification settings - Fork 764
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
[bug] Explicitly listed path that starts with a dot is ignored. #618
Comments
I understand the value of ignoring hidden files when using glob patterns, but ignoring a file which is explicitly listed with an error "Warning: No files were found with the provided path: .covered.db. No artifacts will be uploaded." is extremely confusing, and made me think something was wrong with my own software. Suggest the following:
|
It might also be a nice idea to document somewhere what hidden files are, e.g. are we talking about dot files, |
I think I am also hitting this problem in https://github.com/abravalheri/validate-pyproject/actions/runs/11034259945/job/30647361576. In this GHA step, I am making sure all files exist and that the directory to be uploaded is not empty: abravalheri/validate-pyproject@v0.20...v0.20.1 but even when they exist the I agree that is better to always cache files/directories that are explicitly listed, even if they are hidden, rather than requiring users to set more attributes. |
It would be great to log "Ignored hidden files |
Agree. Just stumbled upon this on one of self-hosted runners with updated action, all the logs were quite misleading (and enabling debug didn't help at all). |
* explicit duplicate key check in debug_assertions also a bit more defensive in production code, this should not lead to any slowdown or changes in code with proper keys CI changes: * force install cli tools over cached versions on version mismatch * Upload PR information for CI see also: actions/upload-artifact#618 misc: * fix panic in panic don't set the panic hook if we are already panicking
What happened?
Explicitly referenced files, e.g.
.coverage.db
are not uploaded.What did you expect to happen?
The file should be uploaded as it exists and is explicitly listed: socketry/protocol-http@0361015
How can we reproduce it?
Explicitly listing a path that starts with a dot.
Anything else we need to know?
No response
What version of the action are you using?
v4
What are your runner environments?
linux
Are you on GitHub Enterprise Server? If so, what version?
No response
The text was updated successfully, but these errors were encountered: