Skip to content
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

Something is wrong with the new update using the Windows binaries #390

Closed
hellishvictor opened this issue Feb 16, 2024 · 5 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@hellishvictor
Copy link

Describe the bug
Hi, I've downloaded from the release section the new v2.6.0 Windows executables, and using "--help", it shows:

dasel_windows_386 --help

Exception 0xc0000005 0x8 0x0 0x0
PC=0x0

runtime.asmstdcall(0x20)
        /opt/hostedtoolcache/go/1.22.0/x64/src/runtime/sys_windows_386.s:44 +0x2a fp=0x18fe28 sp=0x1
8fe24 pc=0x46f1da
eax     0x8
ebx     0xcdabd0
ecx     0x0
edx     0x18fe58
edi     0x18fe2c
esi     0x18fe8c
ebp     0x18fe2c
esp     0x18fe20
eip     0x0
eflags  0x10206
cs      0x23
fs      0x53
gs      0x2b

dasel_windows_amd64 --help

Exception 0xc0000005 0x8 0x0 0x0
PC=0x0

runtime.asmstdcall(0x22fcf8)
        /opt/hostedtoolcache/go/1.22.0/x64/src/runtime/sys_windows_amd64.s:75 +0x7a fp=0x22fc80 sp=0
x22fc60 pc=0x46f4fa
rax     0x0
rbx     0xd609f8
rcx     0xde5aa8
rdx     0x20
rdi     0x7fffffde000
rsi     0x22fe78
rbp     0x22fdc0
rsp     0x22fc58
r8      0x0
r9      0x22fee8
r10     0x2fa2e8
r11     0xc000004000
r12     0x22fec8
r13     0x0
r14     0xd5f640
r15     0x3
rip     0x0
rflags  0x10293
cs      0x33
fs      0x53
gs      0x2b

I switched back to the previous working version v2.5.0. I'm on Windows 7 x64 SP1.
Cheers.

@hellishvictor hellishvictor added the bug Something isn't working label Feb 16, 2024
@hellishvictor hellishvictor changed the title Something is wrong with the the new update using the Windows binaries Something is wrong with the new update using the Windows binaries Feb 16, 2024
@TomWright
Copy link
Owner

Very sorry about that, I'll jump right on it.

@TomWright
Copy link
Owner

I've tested dasel_windows_386.exe on my 64bit windows 10 machine and it works as expected.

The only difference I can see is that it will have built using go v1.22 instead of v1.21. From a quick google search it looks as though this is not in-fact a bug with dasel, rather the go team have dropped support for Windows 7 in newer versions of go:

While I would love to facilitate as many users as possible, locking dasel to an old version of the language feels like a bit of a stretch to me.

While it's unfortunate you cannot execute the binary itself, I believe the following are your options:

  1. Stay on v2.5.0. Assuming you don't need any of the new features/bug fixes then any current scripts/workflows you have should continue to work.
  2. Use dasel via docker. You can always use the latest version of dasel without worrying about compatibility with older versions of Windows.
  3. Build dasel yourself with an older version of go. I expect you'd need at least v1.21, but if that doesn't work it sounds like v1.20 will.

Here's a simple example of running the latest version of dasel with Docker:

$ echo '{"foo":"bar"}' | docker run -i --rm ghcr.io/tomwright/dasel:2.6.0 -r json 'foo'
"bar"

If you have any questions or doubts please let me know.

@TomWright TomWright self-assigned this Feb 16, 2024
@TomWright
Copy link
Owner

As announced in the Go 1.20 release notes, Go 1.21 requires at least Windows 10 or Windows Server 2016; support for previous versions has been discontinued.
https://tip.golang.org/doc/go1.21

@hellishvictor
Copy link
Author

And the thing is that two days ago I downloaded go v1.22 and goreleaser for compile (by very first time) a go program, "micro". Now already got the 1.20.14.
I'll try to compile it, but I must admit that v2.5.0 works like a charm. Definitely, you've created an amazing tool, man.
I haven't got into docks yet, but it's mentioned everywhere, so when I got time I'll give it a try.
Thank you very much!

@TomWright
Copy link
Owner

@hellishvictor if you need help compiling newer dasel versions on older versions of go let me know and I can put something together 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants