This change will enable builds to be performed with the option of
passing the -mod flag to 'go build'. This can be done by optionally
setting the MODMODE environment variable prior to building.
For example, toggling the -mod setting for the build can be
accomplished as follows:
```
$ MODMODE=vendor ./build
```
Signed-off-by: Ryan Tidwell <rtidwell@suse.com>
This change introduces gopkg.in to allow everyone to use multus
code as library. Currently multus-cni uses version 'v3', hence
it hits go modules limitation, as #504 describes.
This change fix#504 with gopkg.in.
Previously the build script required git to be used and installed which
did not allow to build Multus from a tarball which doesn't contain .git
directory. That made packaging of Multus hard.
Example usage after the change if you do not want to use git:
```
$ VERSION=v3.3 COMMIT=ba33df ./build
```
Signed-off-by: Michal Rostecki <mrostecki@opensuse.org>
This changes introduce goreleaser, which does cross-compile and
package, as well as add version into go code. This change also
changes .travis.yml to allow to other users' forked repo.