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

Add GODEBUG option to use legacy filepath.EvalSymlinks() #25054

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

l0rd
Copy link
Member

@l0rd l0rd commented Jan 20, 2025

In go 1.23 filepath.EvalSymlink(path) behavior has changed and now it returns an error if path is a Windows junction. The new behavior breaks some functionalities (see #24557).

With the GODEBUG option winsymlink=0, EvalSymlink uses its legacy behavior on Windows.

Does this PR introduce a user-facing change?

None

@openshift-ci openshift-ci bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note-none labels Jan 20, 2025
Copy link
Contributor

openshift-ci bot commented Jan 20, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: l0rd

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 20, 2025
Copy link

Ephemeral COPR build failed. @containers/packit-build please check.

1 similar comment
Copy link

Ephemeral COPR build failed. @containers/packit-build please check.

In go 1.23 filepath.EvalSymlink(path) behavior has changed
and it returns an error if path is a Windows junction. The
new behavior breaks some functionalities (see containers#24557).

The GODEBUG option `winsymlink=0` allow to get run `EvalSymlink`
with its legacy behavior.

Signed-off-by: Mario Loriedo <[email protected]>
@l0rd l0rd force-pushed the fix-evalsymlink-windows-option2 branch from 233696f to e93a9ec Compare January 20, 2025 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note-none
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant