Skip to content
This repository was archived by the owner on Jul 4, 2024. It is now read-only.
This repository was archived by the owner on Jul 4, 2024. It is now read-only.

[BUG] The filename, directory name, or volume label syntax is incorrect. #12

@keiqiu

Description

@keiqiu

in windows 10 system:
workdir: d://work_golang
git clone https://github.com/micro/services.git

micro run services/helloworld
mkdir C:\Users\user\AppData\Local\Temp\micro\uploads\helloworld\D:: The filename, directory name, or volume label syntax is incorrect.

when i change the code runtime/default.go:133

target = filepath.Join(dst, header.Name)
// if no join is needed, replace with ToSlash:
// target = filepath.ToSlash(header.Name)

to

target = filepath.Join(dst, header.Name)
// if no join is needed, replace with ToSlash:
target = filepath.ToSlash(header.Name)

it will be ok

Environment:

$ go version
go version go1.14.13 windows/amd64

$ go env
set GO111MODULE=on
set GOARCH=amd64
set GOBIN=C:\go\bin
set GOCACHE=C:\Users\user\AppData\Local\go-build
set GOENV=C:\Users\user\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=D:\go
set GOPRIVATE=
set GOPROXY=https://goproxy.io
set GOROOT=C:\go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=C:\go\pkg\tool\windows_amd64
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=NUL
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\user\AppData\Local\Temp\go-build000353338=/tmp/go-build -gno-record-gcc-switches


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions