mirror of
https://gitea.com/actions/upload-artifact.git
synced 2025-04-22 08:45:33 +08:00
PR feedback
This commit is contained in:
parent
64bec0d86c
commit
3b27c9ca28
8
dist/index.js
vendored
8
dist/index.js
vendored
@ -6307,12 +6307,12 @@ function findFilesToUpload(searchPath, globOptions) {
|
|||||||
core_1.debug(`File:${searchResult} was found using the provided searchPath`);
|
core_1.debug(`File:${searchResult} was found using the provided searchPath`);
|
||||||
searchResults.push(searchResult);
|
searchResults.push(searchResult);
|
||||||
// detect any files that would be overwritten because of case insensitivity
|
// detect any files that would be overwritten because of case insensitivity
|
||||||
const currentSetSize = set.size;
|
if (set.has(searchResult.toLowerCase())) {
|
||||||
set.add(searchResult.toLowerCase());
|
|
||||||
if (currentSetSize === set.size) {
|
|
||||||
// set size has not changed which means paths can be overwritten
|
|
||||||
core_1.info(`Uploads are case insensitive: ${searchResult} was detected that it will be overwritten by another file with the same path`);
|
core_1.info(`Uploads are case insensitive: ${searchResult} was detected that it will be overwritten by another file with the same path`);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
set.add(searchResult.toLowerCase());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
core_1.debug(`Removing ${searchResult} from rawSearchResults because it is a directory`);
|
core_1.debug(`Removing ${searchResult} from rawSearchResults because it is a directory`);
|
||||||
|
@ -107,13 +107,12 @@ export async function findFilesToUpload(
|
|||||||
searchResults.push(searchResult)
|
searchResults.push(searchResult)
|
||||||
|
|
||||||
// detect any files that would be overwritten because of case insensitivity
|
// detect any files that would be overwritten because of case insensitivity
|
||||||
const currentSetSize = set.size
|
if (set.has(searchResult.toLowerCase())) {
|
||||||
set.add(searchResult.toLowerCase())
|
|
||||||
if (currentSetSize === set.size) {
|
|
||||||
// set size has not changed which means paths can be overwritten
|
|
||||||
info(
|
info(
|
||||||
`Uploads are case insensitive: ${searchResult} was detected that it will be overwritten by another file with the same path`
|
`Uploads are case insensitive: ${searchResult} was detected that it will be overwritten by another file with the same path`
|
||||||
)
|
)
|
||||||
|
} else {
|
||||||
|
set.add(searchResult.toLowerCase())
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
debug(
|
debug(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user