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

Bump Go to minimum of 1.21 (release-4.1) #2768

Merged
merged 4 commits into from
Mar 26, 2024
Merged

Conversation

dtrudg
Copy link
Member

@dtrudg dtrudg commented Mar 21, 2024

Description of the Pull Request (PR):

Cherry pick #2767 and fixes from #2769 , #2774

Update the minimum version of Go to 1.21 so we can bring in dependencies that declare the same.

Doing this as a separate PR as it requires a fix in code using unsafe. for a deprecation to fix a linter failure.

Before submitting a PR, make sure you have done the following:

dtrudg added 2 commits March 21, 2024 13:55
If we are running with a PID namespace, we have a shim process by
default. We have code that sets the name of this process to `sinit` by:

 * Overwriting the value of argv[0]
 * Using PR_SET_NAME

Both are necessary as PR_SET_NAME only affects the value from
PR_GET_NAME.

In this code, unsafe.StringHeader is now deprecated. Rewrite using the
pattern that takes an unsafe.Slice from an unsafe.StringData to get the
raw bytes for the string os.Args[0].

See:

golang/go#53003 (comment)
@dtrudg dtrudg self-assigned this Mar 21, 2024
@dtrudg dtrudg changed the base branch from main to release-4.1 March 21, 2024 13:56
@dtrudg dtrudg marked this pull request as ready for review March 22, 2024 14:43
@dtrudg dtrudg requested a review from tri-adam March 25, 2024 10:15
Copy link
Member

@tri-adam tri-adam left a comment

Choose a reason for hiding this comment

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

Just one go.mod comment/question... thanks!

@dtrudg dtrudg merged commit c688b7a into sylabs:release-4.1 Mar 26, 2024
1 check passed
@dtrudg dtrudg deleted the pick-2767 branch March 26, 2024 09:48
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