Skip to content

Commit

Permalink
Add GODEBUG option to use legacy filepath.EvalSymlinks()
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
l0rd committed Nov 21, 2024
1 parent dd97d3e commit 4b9dcc1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -230,3 +230,7 @@ require (
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
tags.cncf.io/container-device-interface/specs-go v0.8.0 // indirect
)

godebug (
winsymlink=0
)

0 comments on commit 4b9dcc1

Please sign in to comment.