GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Add glob option to ignore hidden files by joshmgross · Pull Request #1791 · actions/toolkit Conversation
| |||||||||||||||||||||||||||||||||||||||||||||||||
| /** | ||
| * Indicates whether to include hidden files (files and directories starting with a `.`). | ||
| * | ||
| * @default false |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Don't we want the default behavior to be to exclude?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
We want the default to be exclude for the action that consumes this library, I don't think we need or should make a breaking change in this library.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Makes sense for changes to the glob package to be backward compatible but just curious, what other actions use this package? Are there any actions other than upload-artifact where we would want to pass true?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
nit: the comment should read "Indicates whether to exclude hidden files.."
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Are there any actions other than upload-artifact where we would want to pass true?
I see actions/deploy-pages, actions/upload-artifact, and actions/download-artifact.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| continue | ||
| } | ||
|
|
||
| // Hidden file or directory? |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
What upload-artifact version(s) is this code path exercised in?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Glob is utilized here https://github.com/actions/upload-artifact/blob/main/src/shared/search.ts
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
| @@ -1,6 +1,6 @@ | |||
| { | |||
| "name": "@actions/glob", | |||
| "version": "0.4.0", | |||
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Can you update the releases file if you are going to bump in this pr as well
https://github.com/actions/toolkit/blob/main/packages/glob/RELEASES.md
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
No other changes outside of this, some test fixes, and package bumps for security reasons
https://github.com/actions/toolkit/commits/main/packages/glob
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| await createHiddenDirectory(path.join(root, '.emptyFolder')) | ||
| await createHiddenDirectory(path.join(root, '.folder')) | ||
| await createHiddenFile(path.join(root, '.file'), 'test .file content') | ||
| await fs.writeFile( |
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I'm a little confused about the behaviour here.
I'm not sure if the behaviour for the following globs matches what's intended
ignores-hidden-files/.folder - returns nothingignores-hidden-files/.folder/ - returns nothingignores-hidden-files/.folder/* - returns fileignores-hidden-files/.folder/file - returns file
Sorry, something went wrong.
There was an error while loading. Please reload this page.
* Add glob option to ignore hidden files * Use the basename of the file/directory to check for `.` * Ensure the `excludeHiddenFiles` is properly copied * Allow the root directory to be matched * Fix description of `excludeHiddenFiles` * Document Windows hidden attribute limitation * Bump version * `lint` * Document 0.5.0 release * Lint again
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.