dh1tw / remoteAudio

Audio streaming application for Amateur Radio purposes
MIT License
165 stars 24 forks source link

can't build with go 1.16, and later #31

Closed K6TD closed 2 years ago

K6TD commented 3 years ago

with go.mod in version 1.16 and beyond, the recommended go -get command results in a package in the directory $GOPATH/pkg/mod/github.com/dh1tw/ building from the pkg directory doesn't seem to work.

Not sure how to make this work with go 1.16.

KR

dh1tw commented 3 years ago

Hey Kevin,

TL;DR: indeed, a few things have changed with the latest go versions. I just updated and verified the build instructions in the wiki. You should be able to download and build remoteAudio again.

Long answer: By default, go doesn't require that the project source code is located in GOPATH/src anymore. You can now git clone the code into an arbitrary directory. A couple of versions ago, go modules have been introduced. go modules is the long-awaited dependency management. Therefore by default go get doesn't download the source code anymore but rather downloads the entire module and stores in tn the $GOPATH/pkg/mod directory.

K6TD commented 2 years ago

tks. Tobias. The solution on the wiki, as well as the changes to Makefile, was where I ended up, too. I tested the wiki recipe - worked fine. 73, K6TD