-
Notifications
You must be signed in to change notification settings - Fork 103
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When I build polycubectl, occured following errors:
./install.sh
- set -e
- echo 'installing polycubectl ...'
installing polycubectl ...
++ pwd - pwdir=/root/rpmbuild/SOURCES/polycube-0.9.0-rc/src/polycubectl
- mkdir -p /openEuler/goworkspace/src/github.com/polycube-network/polycube/src/
- ln -f -s /root/rpmbuild/SOURCES/polycube-0.9.0-rc/src/polycubectl /openEuler/goworkspace/src/github.com/polycube-network/polycube/src/
- cd /openEuler/goworkspace/src/github.com/polycube-network/polycube/src/polycubectl
- go get ./...
go: cannot find main module; see 'go help modules'
++ error_message
++ set +x
Error during installation
To Reproduce
Steps to reproduce the behavior:
tar -azxvf v0.9.0-rc.tar.gz
cd polycube-0.9.0-rc/src/polycubectl/
chmod 777 install.sh
dos2unix install.sh
3. ./install.sh
4. See error
Expected behavior
build polycubectl.
Please tell us about your environment:
- OS details: EulerOS release 2.0 (SP9)
- Kernel details: Linux hostname 4.19.90-2003.4.0.0036.oe1.aarch64 pcn_log cannot be split in multiple lines #1 SMP Mon Mar 23 19:06:43 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux
- Polycube Version: polycube-0.9.0-rc
- Polycube Log: none
Additional context
If I go mod init.
The error information is:
./install.sh
- set -e
- echo 'installing polycubectl ...'
installing polycubectl ...
++ pwd - pwdir=/root/rpmbuild/SOURCES/polycube-0.9.0-rc/src/polycubectl
- mkdir -p /openEuler/goworkspace/src/github.com/polycube-network/polycube/src/
- ln -f -s /root/rpmbuild/SOURCES/polycube-0.9.0-rc/src/polycubectl /openEuler/goworkspace/src/github.com/polycube-network/polycube/src/
- cd /openEuler/goworkspace/src/github.com/polycube-network/polycube/src/polycubectl
- go get ./...
go: finding github.com/iancoleman/orderedmap latest
build github.com/polycube-network/polycube/src/polycubectl: cannot load github.com/Jeffail/gabs2: cannot find module providing package github.com/Jeffail/gabs2
++ error_message
++ set +x
Error during installation
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working