You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The hasMeta function in file src/io/fs/glob.go is a rewrite of the hasMeta function in file src/path/filepath/match.go but with the condition on runtime.GOOS inverted.
dmitshur
added
NeedsFix
The path to resolution is known, but the work has not been done.
and removed
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
labels
Feb 9, 2021
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
No.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Run the code:
https://play.golang.org/p/ZkA2fBIFc6m
source
What did you expect to see?
What did you see instead?
Resolution
The
hasMeta
function in filesrc/io/fs/glob.go
is a rewrite of thehasMeta
function in filesrc/path/filepath/match.go
but with the condition onruntime.GOOS
inverted.This line
should be written as
Question
Even if this function is fixed, why the
fs.Glob
function depends on the operating system?The text was updated successfully, but these errors were encountered: