-
-
Notifications
You must be signed in to change notification settings - Fork 119
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
i just noticed this another behavior on @latest vs @master #201
Comments
Can you clarify with more details? The command you shared doesn't have the version specified. How are you specifying the version? Also, why are you doing a |
I see what you're saying now. We missed carrying over replacements from |
@mohammed90 i am trying that b72e330, got this error with cmd: the error: panic: runtime error: slice bounds out of range [:1073741920] with capacity 5262418 goroutine 1 [running]: |
This is not coming from xcaddy, but appears to be from the Go linker. That said, please share the full, unredacted log. Edit: I guess this is related: porech/caddy-maxmind-geolocation#20 |
Hi, here is full log: xcaddy build --with github.com/porech/caddy-maxmind-geolocation�����2024/09/11 19:39:40 [INFO] absolute output file path: /home/dev/caddy import (
) func main() { caddypanic: runtime error: slice bounds out of range [:1073741920] with capacity 5262418 goroutine 1 [running]: |
You're running into this golang/go#63787. Basically, your Go installation is messed up. Clear the go cache by running |
Thanks much! It works again with go clean -cache -modcache |
i just noticed this another behavior on @latest vs @master:
with same cmd:
xcaddy build --output ./caddy/caddy --with github.com/caddyserver/caddy/v2=./caddy
On @latest: its building OK with those info about using local caddy folder:
go: to add module requirements and sums:
go mod tidy
2024/09/11 08:15:08 [INFO] Replace github.com/caddyserver/caddy/v2 => /home/dev/caddy
2024/09/11 08:15:08 [INFO] exec (timeout=0s): /usr/bin/go mod edit -replace github.com/caddyserver/caddy/v2=/home/dev/caddy
2024/09/11 08:15:08 [INFO] Pinning versions
On @master: it has no above infor about replacing local caddy folder, and finally binary has no modify
Do i using wrong or some issues?
Thanks!
The text was updated successfully, but these errors were encountered: