nuagenetworks / nuage-libnetwork Goto Github PK
View Code? Open in Web Editor NEWNuage Docker Integration
Home Page: http://nuagenetworks.net/
License: BSD 3-Clause "New" or "Revised" License
Nuage Docker Integration
Home Page: http://nuagenetworks.net/
License: BSD 3-Clause "New" or "Revised" License
Why do you have Version: 0.0
as opposed to Version: %{version}
?
Name: nuage-libnetwork
Version: 0.0
Release: 1%{?dist}
https://github.com/nuagenetworks/nuage-libnetwork/blob/master/rpmbuild/nuage-libnetwork.spec#L8
I have the following constraint in Gopkg.toml
.
[[constraint]]
name = "github.com/nuagenetworks/nuage-libnetwork"
When I run dep ensure
, it complaints that nuage-libnetwork
uses upper-case S
when referring to logrus
, which the logrus
itself is github.com/sirupsen/logrus
(lowercase).
$ dep ensure
ensure Solve(): No versions of github.com/nuagenetworks/nuage-libnetwork met constraints:
master: Could not introduce github.com/nuagenetworks/nuage-libnetwork@master due to a case-only variation: it depends on "github.com/Sirupsen/logrus", but "github.com/sirupsen/logrus" was already established as the case variant for that project root by depender (root)
The ask is to replace Sirupsen
with sirupsen
in this library.
See also from logrus:
Everything using logrus will need to use the lower-case: github.com/sirupsen/logrus. Any package that isn't, should be changed.
On a single node, there could be multiple paths in $GOPATH
. Thus, the below line in scripts/buildRPM.sh
would fail.
cd $GOPATH/src/github.com/nuagenetworks/nuage-libnetwork
It is much nicer to have something like this:
#!/bin/bash
set -e
if [ -z ${GOPATH} ]; then
echo "\"GOPATH\" environmental variable is not set";
exit 1
fi
PLUGIN_NAME="nuage-libnetwork"
PLUGIN_VERSION="5.1.1"
rm -rf ~/rpmbuild/BUILD/nuage-libnetwork*
rm -rf ~/rpmbuild/SOURCES/nuage-libnetwork*
rm -rf ~/rpmbuild/RPMS/x86_64/nuage-libnetwork*
rm -rf ~/rpmbuild/SRPMS/nuage-libnetwork*
rm -rf /tmp/${PLUGIN_NAME}-${PLUGIN_VERSION}
for GPATH in ${GOPATH//:/ }; do
find ${GPATH} -type d -name "nuage-libnetwork" | xargs cd $1;
done;
PLUGIN_PATH=$(pwd);
echo "Discovered ${PLUGIN_NAME} plugin in ${PLUGIN_PATH}";
echo -n "Performing Go build of ${PLUGIN_NAME}-${PLUGIN_VERSION} ...";
go build
echo "done";
echo -n "Create an archive for RPM build ...";
mkdir -p ${HOME}/rpmbuild/SOURCES
tar -cf ${HOME}/rpmbuild/SOURCES/${PLUGIN_NAME}-${PLUGIN_VERSION}.tar.gz ${PLUGIN_NAME}* scripts/${PLUGIN_NAME}*
echo "done";
echo "Note: Please review the contents of the archive: 'tar -tvf ${HOME}/rpmbuild/SOURCES/${PLUGIN_NAME}-${PLUGIN_VERSION}.tar.gz'"
echo "Performing RPM build";
rpmbuild --nodeps -ba $PLUGIN_PATH/rpmbuild/${PLUGIN_NAME}.spec
echo "Done!";
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.