-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Core: Use fs-extra emptyDir so build works on docker volume #13474
Merged
shilman
merged 1 commit into
storybookjs:next
from
russellwpatterson:rp-empty-dir-for-cleanup
Dec 20, 2020
Merged
Core: Use fs-extra emptyDir so build works on docker volume #13474
shilman
merged 1 commit into
storybookjs:next
from
russellwpatterson:rp-empty-dir-for-cleanup
Dec 20, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
russellwpatterson
requested review from
aaronmcadam,
alexandrebodin,
alterx,
CodeByAlex,
dangreenisrael,
igor-dv,
jbovenschen,
kazupon,
leonrodenburg,
thani-sh,
ndelangen,
renaudtertrais,
saponifi3d,
shilman,
stijnkoopal,
theinterned,
thomasbertet,
tmeasday,
usulpro and
z4o4z
as code owners
December 17, 2020 21:06
shilman
changed the title
Use fs-extra emptyDir instead of remove so that build works on docker volume
Core: Use fs-extra emptyDir so build works on docker volume
Dec 20, 2020
shilman
added
bug
compatibility with other tools
core
patch:yes
Bugfix & documentation PR that need to be picked to main branch
run e2e extended test suite
Run the e2e extended test suite in CircleCI workflows
labels
Dec 20, 2020
shilman
approved these changes
Dec 20, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. thanks @russellwpatterson 💯
This was referenced Mar 8, 2021
Closed
This was referenced Mar 15, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
compatibility with other tools
core
patch:done
Patch/release PRs already cherry-picked to main/release branch
patch:yes
Bugfix & documentation PR that need to be picked to main branch
run e2e extended test suite
Run the e2e extended test suite in CircleCI workflows
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue:
When using a docker volume as an output directory, the build process fails with the following error:
What I did
I updated the directory removal to use
fs-extra
's.emptyDir
instead of.remove
which empties a folder instead of removing it.I believe this should be considered for a 6.1.x patch since this bug breaks CI for 6.1.x if that outputDir is a docker volume.
Related issue: #13168
How to test
If your answer is yes to any of these, please make sure to include it in your PR.