-
-
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
build-storybook breaks on linux in CI #13168
Comments
I faced this issue as well on my Ubuntu 2020.04 desktop, with storybook I worked around this by building the storybook myself, then using the |
On this package's README:
Perhaps it shouldn't be used at all? |
@ghengeveld @ndelangen easiest solution would just be to revert that line and remove the folder instead (with some performance hit). WDYT? |
If my comments seem strange, it's because I faced this while trying to get I got lost in the yak shaving and commented as if it was the chromatic repo. |
This breaks our CI process as well. I suppose it will break a lot of Linux-based CI systems. While I appreciate protecting the user against accidental unintended and permanent removal of potentially important data, if the output dir is set to a directory that may contain data that should not be deleted, using a library that mimics the host OS' trash mechanism doesn't seem like the best approach. Maybe just fail if the output dir is a non-empty directory? |
Let's revert for now, but we may want to add a bit of a safety net because running |
Very interesting. I now understand why the trash package is being used. However, if things are moved to the trash, doesn't that increase the disk usage each build? From what I understand it's possible to trash multiple versions of a folder with the same name. How do other packages that output/compile things into directories deal with this? |
Hurrah!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.1.3 containing PR #13211 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
Ran into a similar issue with Storybook 6.1.11 in Docker container
Could there still be some issue with removing the directory that has not been resolved? Builds worked fine with Storybook 6.0.27. |
We're also experiencing this in our CI system. I believe it's due to the outputDir being a docker volume. Looks like the way these deletes happened changed in 6.1.x. I'll be submitting a PR soon for a simple fix that just empties the folder instead of removing and recreating it. |
Describe the bug
Storybook build fails on Docker container with
node:12
image (in GitLab CI)https://github.com/nodejs/docker-node/blob/41ea0562287bbf98693572c9228edc1beb7fd709/12/alpine3.12/Dockerfile
Definitely related to this: 9d4264b and this: sindresorhus/trash#92
The text was updated successfully, but these errors were encountered: