Skip to content

affected/package: #52501

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

Closed
slnc opened this issue Apr 22, 2022 · 1 comment
Closed

affected/package: #52501

slnc opened this issue Apr 22, 2022 · 1 comment

Comments

@slnc
Copy link

slnc commented Apr 22, 2022

What version of Go are you using (go version)?

$ go version
go version go1.18.1 darwin/amd64

Does this issue reproduce with the latest release?

Yes.

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/juanalonso/Library/Caches/go-build"
GOENV="/Users/juanalonso/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/juanalonso/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/juanalonso/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go/1.18.1/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.18.1/libexec/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.18.1"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/juanalonso/files/juan/juan.al/hugo/go.mod"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/89/g367mkcn77q3ymjt81cm8ry40000gn/T/go-build3655242153=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

$ git clone https://github.com/slnc/hugo.git
$ cd hugo
$ go mod tidy

What did you expect to see?

go mod tidy suceeds and updates go.sum.

What did you see instead?

An error:

go: downloading github.com/bep/gitmap v1.2.0
github.com/gohugoio/hugo/hugolib imports
        github.com/bep/gitmap: create zip: testfiles/emoji📚.txt: malformed file path "testfiles/emoji📚.txt": invalid char '📚'
[... rest of the output truncated...]

For context on how I got here please see gohugoio/hugo#9810. Use-case: some people using http://obsidian.md/ to manage their digital gardens and Hugo to host them use emojis in filenames to help navigate hundreds of files, but in order to show a "Recently updated notes" feature we need Git commit history for them. I just updated the package that Hugo uses to retrieve that info, gitmap, but now that I'm trying to update Hugo's go.sum, I'm hitting this error.

Is there a reason why characters like that aren't supported? Is there a way to update go.sum manually? gitmap gets updated less frequently than once a year.

@seankhliao
Copy link
Member

Duplicate of #45549

@seankhliao seankhliao marked this as a duplicate of #45549 Apr 22, 2022
@golang golang locked and limited conversation to collaborators Apr 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants