akavel / rsrc

Tool for embedding .ico & manifest resources in Go programs for Windows.
MIT License
1.22k stars 122 forks source link

Unable to compile in linux with two errors. #34

Closed 8zbc closed 3 years ago

8zbc commented 3 years ago

Dear @akavel ,

I am having difficulties to compile the rsrc. first off, I download the complete codes. with git clone, then place into linux folder as follow. /go/src/github.com/akavel/rsrc

jay@localhost:~/go/src/github.com/akavel/rsrc> sudo go build [sudo] password for root: go build: build output "rsrc" already exists and is a directory jay@localhost:~/go/src/github.com/akavel/rsrc> sudo go build go: finding module for package github.com/akavel/rsrc/rsrc rsrc.go:8:2: no matching versions for query "latest" jay@localhost:~/go/src/github.com/akavel/rsrc>

there has been existing subfolder name called rsrc, and hence the error go build: build output "rsrc" already exists and is a directory after I move away the subfolder, it gave me another error. rsrc.go:8:2: no matching versions for query "latest"

which i have no idea how to solve it, please advise. thanks

my platform: opensuse 15.2, AMD64

akavel commented 3 years ago

I'm really sorry, but that's a generic beginner Go question, not especially related to rsrc library - and unfortunately I currently don't have enough time available to be able to mentor you through beginner Go learning stages. Given that, the best I can think of that I can do for you, is to recommend that you try to find some beginner-friendly Go language community/forum, and ask people there for help with your problems. I'm not very active in Go communities currently, so I'm not sure what are the best places for that, still there's at least two ways I'd recommend to maybe try first:

Again, I'm sorry I won't help you more, and wish you all the best and good luck with learning Go and having fun with it! Hope you'll find some help through the channels above, and maybe we'll meet one day again once you have questions or suggestions that are more specific to rsrc or some other of my projects in particular! :)

Have a great time and be awesome!

8zbc commented 3 years ago

@akavel, thanks for reply here, I just not sure if it is code issue or the the compiler issue at first, since now you have pointed out it is the go lang issue, I will consult the online links that you have provided, thanks again for pointing me towards the right directions, Merry Christmas and Happy Holiday, Cheers.