Skip to content
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

Document missing disable-adopt-branch-safety #4019

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

judovana
Copy link
Contributor

No description provided.

@@ -106,6 +106,9 @@ It is known issue: https://github.com/adoptium/temurin-build/issues/3862
.BR \-\-debug-docker
debug OpenJDK build script in a docker container. Only valid if \fB-D\fR is selected.
.TP
.BR \-\-disable-adopt-branch-safety
disable the default check for tags/branches in case of \fBtemurin\fR as --build-variant.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the check? More context will help

Copy link
Contributor Author

@judovana judovana Nov 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tbh I'm not sure. i think itis checking whether you are in correct repo, in correcy branch with correct tags.I will try to diga bot more

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sure jsut 51/49 but i read it as follows:

  • The temurin varinat always checks for tags.
  • In addition for specific tags.

And the second is more important. If it do not found the correct tags, it fails. If the disable-adopt-branch-safety become true, then the check happens, but if no tag is found, it jsut creates a fake one and continue. So most likely my comment with tags/branches should be just tags. Should I rephrase the man page line?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes and the comment that it is checking if you are in the correct tag is good context to add.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@karianna ok. In that case I have to verify that I understood it correctly. Tahnk you!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The more precise description is actually not related to "tags" but the detection of the TEMURIN_MARKER_FILE, which is the file README.JAVASE, which is only present in the Adoptium "mirror" : https://github.com/adoptium/jdk21u/blob/dev/README.JAVASE. This check is to ensure Temurin is building from the Adoptium mirror source, and not something else..., hence the use of the word "safety".
The "fake tag" bit is just an additional bit to avoid the missing _adopt tag associated with not using an Adoptium mirror.

Copy link
Contributor Author

@judovana judovana Nov 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanx a lot, updated.

@@ -106,6 +106,9 @@ It is known issue: https://github.com/adoptium/temurin-build/issues/3862
.BR \-\-debug-docker
debug OpenJDK build script in a docker container. Only valid if \fB-D\fR is selected.
.TP
.BR \-\-disable-adopt-branch-safety
disable the default check for tags/branches in case of \fBtemurin\fR as --build-variant.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes and the comment that it is checking if you are in the correct tag is good context to add.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants