Packaging: Go: use GO111MODULE=auto in build instructions.

This commit is contained in:
Konstantin Pavlov
2022-05-26 10:52:58 +04:00
parent 02f50533c4
commit 237ddbe177
2 changed files with 2 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ The $(MODULE_SUMMARY_go) has been installed.
To check out the sample app, run these commands:
GOPATH=/usr/share/gocode go build -o /tmp/go-app /usr/share/doc/unit-$(MODULE_SUFFIX_go)/examples/go-app/let-my-people.go
GOPATH=/usr/share/gocode GO111MODULE=auto go build -o /tmp/go-app /usr/share/doc/unit-$(MODULE_SUFFIX_go)/examples/go-app/let-my-people.go
sudo service unit restart
cd /usr/share/doc/unit-$(MODULE_SUFFIX_go)/examples
sudo curl -X PUT --data-binary @unit.config --unix-socket /var/run/control.unit.sock http://localhost/config

View File

@@ -65,7 +65,7 @@ The $(MODULE_SUMMARY_go) has been installed.
To check the sample app, run these commands:
GOPATH=%{gopath} go build -o /tmp/go-app /usr/share/doc/unit-go/examples/go-app/let-my-people.go
GOPATH=%{gopath} GO111MODULE=auto go build -o /tmp/go-app /usr/share/doc/unit-go/examples/go-app/let-my-people.go
sudo service unit start
cd /usr/share/doc/%{name}/examples
sudo curl -X PUT --data-binary @unit.config --unix-socket /var/run/unit/control.sock http://localhost/config