Skip to content

[BUG] Build polycubectl failed. #322

@Mr-dot-lu

Description

@Mr-dot-lu

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:

  1. wget https://github.com/polycube-network/polycube/archive/v0.9.0-rc.tar.gz

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:

  1. OS details: EulerOS release 2.0 (SP9)
  2. 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
  3. Polycube Version: polycube-0.9.0-rc
  4. 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

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions