-
Notifications
You must be signed in to change notification settings - Fork 292
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
Clean directories when building the site #2203
Comments
Related: #2202 |
I think using "git clean" in the makefile "html" target is too dangerous since it's likely to delete developers' work in progress. Neither should we be assuming this repo has been deployed via git since we might have CPAN tarballs deploys one day. It would be safer to explicitly delete files and directories. |
it's going to be git clean -fd. It just deletes all files and directories
that are no longer under source control. In fact, html directory has just a
few files under git control.
|
Closed as fixed. |
Um, not really. I'll have to add something to the update and sync scripts. |
nm, it's something else |
Actually it is that commit (2e99de6) that's nuking the On my first test, the cronjob was just using the old version of that file, before fetching with my commit |
Right, but the problem is that it's not created by the scripts that generate the js files there... git clean -fd is needed because that's what was causing the previous build error with a directory that was created under Language, was deleted in the source tree and not built again... |
The problem it shows in this log https://docs.perl6.org/build-log/build-2018-07-24T23:02+00:00.log does not seem to have anything to do with removing html/js. But it failed, and thus html/js was not created all over again for some reason... |
The problem
When a whole directory with all its files were deleted, it started to cause problems with site construction
Suggestions
Insert
git clean -fd
where needed so that it does not happen again in the future. In general, untracked directories are inoffensive, but sometimes they create files that are then processed and cause errors.The text was updated successfully, but these errors were encountered: