-
Notifications
You must be signed in to change notification settings - Fork 874
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
Import local schema to avoid DNS lookup in build #7283
Conversation
Did I do this right? I created my pull request branch UPDATE: Never mind. I fixed it after finding these helpful instructions. |
hi @jgneff,
Depends what you are trying to do ;) Regarding changing the target branch of a PR: your branch should be a copy of the branch you are targeting. So if you target You don't have to close the PR, you can simply force push into your branch ( |
Thanks, Michael. I would like this to go into NetBeans 22, if at all possible, but I'm not able to add any labels. The build of NetBeans 22 fails for me without this fix (as it did for the same problem in 2022 and 2023).
I figured it out. (See UPDATE above.) I didn't realize you could edit the base branch in addition to the PR title when you click the Edit button at the top of the pull request on GitHub.
I did that. I just forgot to change the base branch on the GitHub pull request. GitHub sets the base branch to the master branch no matter what you have for the actual base of your pull request branch, it seems.
Didn't even have to do that. I just switched it in GitHub to match what I had actually done locally, which is to base my pull request branch on the delivery branch. |
sounds good. going to quickly lock and unlock this PR so that CI is picking up the labels. The file is also recent, so it makes sense that it started happening not too long ago. edit: all tests are green, removing label |
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.
In general looks good and can go in. Thank you.
@jgneff do you have the full stack trace when this happens? Ideally we would not need to fiddle with the schemas and just use a catalog to modify the resolving, just as the IDE normally does.
Here's the full stack trace: strictly-netbeans_amd64.txt. This pull request simply loads the copy of the latest 2009 XML namespace schema that is already found on the local file system:
|
Please review this one-line change to the file
jakartaee_11.xsd
, which is a new file for NetBeans 22. This change in the Jakarta EE 11 file is the same as the previous changes for Jakarta EE 10 in 2023 and Jakarta EE 9 in 2022:The original issue is:
Without this fix, building NetBeans on Launchpad fails with the exception:
With this fix, there are no DNS lookups during the build, and the NetBeans build on Launchpad is successful.