-
Notifications
You must be signed in to change notification settings - Fork 102
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
Contributing a style change to the Learn WordPress codebase results in file conflicts. #1445
Comments
Maybe it makes since to build these files via GitHub Actions only on trunk commit? |
Yeah correct, everytime someone merges a PR these files are rebuilt, and then any existing PRs with style changes will be in conflict. It does make sense to remove them from source control. I'm wondering if they have been included up until now so that the local environment can be run without building. In terms of when to build there are a few approaches we could take. We currently build when syncing this repo with SVN, and we could possibly add the built files then so that they are sync'd and deployed. I might experiment with this as it stands, as it seems the lowest effort fix. Alternatively we could create and update a |
Agree not to include them in the src control.
Building the repo and syncing files to SVN through the sync script is probably the easiest way to fix the issue. We just need to add those built files into .gitignore. |
We'd need to ensure a clear instruction in the readme that the style needs to be built when setting up, or it could lead to issues being raised. |
I saw there's |
Thanks for the insight here, folks.
I agree this is enough for most folks, and if not, we can always update the readme to be more descriptive about what this does, and why it's required to run the site locally. I think we're in agreement that removing these files (and any other files that might be built in this way) from source control, and then building the repo and syncing the files to SVN through the sync script is a solid plan, bonus points for it being the lowest effort. @adamwoodnz can I leave this one with you to take care of? |
Yes, although we have other high priority work on currently so I'm unsure how soon I can get to it. |
No worries. In the meantime, I'll ask folks in other PRs to check out the original versions of those files. |
@adamwoodnz I took a look at the Gruntfile when working on a small simple task and it seems that only |
Given this outcome, can we now close this @renintw ? Thanks for handling this 🌟 |
@adamwoodnz Yeah, it's good to close 🎉 Closed as fixed in #1448. |
When fixing CSS issues in any of the wporg-learn-2020 theme scss files, the
wporg-learn-2020/css/style.css
andwporg-learn-2020/css/style-rtl.css
are reported as having conflicts in the PRExample PRs #1362, #1366, #1368, #1375, #1388.
Also seems to be the reason for conflicts on #995, #1160, #1348
From experience, this seems to be because those files are built every time the yarn build process runs.
Ideally, we should either a) have a way to create PRs that don't cause these conflicts, or b) have a guideline around whether it's acceptable to merge PRs with these specific conflicts.
@adamwoodnz is the build process run before any updated code is deployed to production?
If this is the case, then we can simply remove those two files from revision control, and add them to the .gitignore, meaning they won't be included in any future PRs.
The text was updated successfully, but these errors were encountered: