akavel/rsrc

coff/coff.go error @line 133 & line 220 when trying to download the whole repo.

8zbc opened this issue · 2 comments

8zbc commented

Hi Akavel,

I am trying to download with this go command on linux and receive the following errors. wonder what could went wrong here?

jay@localhost:~/go/src/test> go get -u github.com/akavel/rsrc

github.com/akavel/rsrc/coff

../../pkg/mod/github.com/akavel/rsrc@v0.10.1/coff/coff.go:133:18: undefined: pe.IMAGE_FILE_MACHINE_ARMNT
../../pkg/mod/github.com/akavel/rsrc@v0.10.1/coff/coff.go:220:7: undefined: pe.IMAGE_FILE_MACHINE_ARMNT
note: module requires Go 1.12jay@localhost:/go/src/test>
jay@localhost:
/go/src/test>

your code @
line 133 is = coff.Machine pe.IMAGE_FILE_MACHINE_ARMNT:
line 220 is = case pe.IMAGE_FILE_MACHINE_ARMNT:

My PC is AMD64, so is there any way to skip the ARM arch for me? I run this through script, so I did't download the entire source code and compile.

Please advise. thanks in advance.

You're most probably using too old Go. You need Go 1.12 or newer. Check out what shows up when you run go version. See also: #30 . You can try and "go get" version 0.8.0 if you have reasons why you need to build by yourself and cannot just download a prebuild release from: https://github.com/akavel/rsrc/releases

I wonder why are you using such old version of Go? Does it come preinstalled on your OS? Is it some version of Ubuntu, or what?

8zbc commented