hertz: The hertz(v 0.5.1) project cannot be build on Windows 32
Describe the bug The hertz project cannot be created on Windows, but the documentation explains that windows is supported
To Reproduce
- open cmd
- cd workspace
- hz new
- failed create project
- error: generating layout failed: lint file ‘router_gen.go’ failed, err: 7:21: unknown escape sequence
Expected behavior
Successfully create a hertz project
Screenshots
Hertz version:
hz version v0.5.1
Environment:
The output of go env
.
set GO111MODULE=on
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Usrs~\AppData\Local\go-build
set GOENV=C:\Users~\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=D:\code\Coding\gopath\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=D:\code\Coding\gopath
set GOPRIVATE=
set GOPROXY=https://goproxy.cn,direct
set GOROOT=D:\code\environment\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=D:\code\environment\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.19.4
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=D:\code\Coding\gopath\src\github.com\ch\test_hertz\go.mod
set GOWORK=
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 -Wl,–no-gc-sections -fmessage-length=0 -fdebug-prefix-map=C:\Users\·\AppData\Local\Temp\go-build4266385993=/tmp/go-build -gno-record-gcc-switches
Additional context
Add any other context about the problem here.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 19 (10 by maintainers)
@lizhe-0423 文档问题欢迎详细反馈 issue 或 pr
参考: GOARCH 中 386 与 amd64 的区别 386 代表 32 位系统,也称为 i386。名字源于 Intel 80386 指令集。 amd64 代表 64 位系统。名字源于 64 位指令集最早由 AMD 公司发布。
同学你的go env 看起来是32位的,现在想办法更新一下那个 ameda 的包就可以,或者你如果你装一个 amd64的 go试试
—Original— From: @.> Date: Fri, Jan 27, 2023 22:37 PM To: @.>; Cc: @.>;"State @.>; Subject: Re: [cloudwego/hertz] The hertz(v 0.5.1) project cannot be created onWindows (Issue #561)
github.com/andeya/ameda
是这样嘛? 命令执行成功了 但还是无法运行 错误信息 就是上面写到的
运行:
环境:
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you modified the open/close state.Message ID: @.***>
感谢 解决了! 非常感谢。
您执行这一步没有呢