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
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
Windows:
go env Output
go env
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\simar\AppData\Local\go-build
set GOENV=C:\Users\simar\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\simar\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\simar\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\Program Files\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=C:\Program Files\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.20.2
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=0
set GOMOD=\\vmware-host\Shared Folders\simar On My Mac\repos\filepath-match-test\go.mod
set GOWORK=
set CGO_CFLAGS=-O2 -g
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-O2 -g
set CGO_FFLAGS=-O2 -g
set CGO_LDFLAGS=-O2 -g
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=C:\Users\simar\AppData\Local\Temp\go-build550900517=/tmp/go-build -gno-record-gcc-switches
The filepath package uses either forward slashes or backslashes, depending on the operating system. To process paths such as URLs that always use forward slashes regardless of the operating system, see the path package.
The filepath package uses either forward slashes or backslashes, depending on the operating system. To process paths such as URLs that always use forward slashes regardless of the operating system, see the path package.
Sorry I missed that piece at the very top. Thanks again.
What version of Go are you using (
go version
)?Windows
macOS
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?Windows:
go env
OutputmacOS:
go env
OutputWhat did you do?
Here's a small test program.
What did you expect to see?
I expect to see the following output on both macOS/Linux and Windows:
What did you see instead?
On Linux/macOS
On Windows
Additional info
Apologies if this is related to user error. I have read the
filepath.Match
documentation here which does briefly talk about Windows and escaping as:But to me it's not entirely clear what this implies and how it is different than any other OS.
Signed-off-by: Simar simar@linux.com
The text was updated successfully, but these errors were encountered: