Comments (4)
fixed in https://github.com/kamilchm/go2nix/releases/tag/v1.1.1
from go2nix.
in go-modules/generic/default.nix
i removed this lines:
@@ -109,13 +111,16 @@ go.stdenv.mkDerivation (
local d; local cmd;
cmd="$1"
d="$2"
echo "$d" | grep -q "\(/_\|examples\|Godeps\)" && return 0
[ -n "$excludedPackages" ] && echo "$d" | grep -q "$excludedPackages" && return 0
local OUT
if ! OUT="$(go $cmd $buildFlags "''${buildFlagsArray[@]}" -v $d 2>&1)"; then
if ! echo "$OUT" | grep -q 'no buildable Go source files'; then
- echo "$OUT" >&2
- return 1
+ #echo "$OUT" >&2
+ return 0
and now it compiled & installed
from go2nix.
if i reduce the deps it'll just work. so there seems to be a collision of some sort which is caught but i don't understand why go2nix
outputs a deps.nix which then has too many entries.
deps.json
[
{
"goPackagePath": "golang.org/x/net",
"fetch": {
"type": "git",
"url": "https://go.googlesource.com/net",
"rev": "07b51741c1d6423d4a6abab1c49940ec09cb1aaf",
"sha256": "12lvdj0k2gww4hw5f79qb9yswqpy4i3bgv1likmf3mllgdxfm20w"
}
}
]
compile output
nix-env -f /home/joachim/Desktop/projects/nixos/nixpkgs/default.nix -I nixpkgs=/home/joachim/Desktop/projects/nixos/nixpkgs -iA leaps.bin ~/Desktop/projects/nixos/nixpkgs/pkgs
replacing old ‘go1.6-leaps-20160626-5cf7328’
installing ‘go1.6-leaps-20160626-5cf7328’
these derivations will be built:
/nix/store/vfzq83lfws46wisjvx78vvc07i6d51rs-go1.6-leaps-20160626-5cf7328.drv
building path(s) ‘/nix/store/h01809qll0llrhh52jq4v7xjf4zkfrp1-go1.6-leaps-20160626-5cf7328’, ‘/nix/store/m88pyqrd5syzr8h70jnk6ag9yccx78jy-go1.6-leaps-20160626-5cf7328-bin’
unpacking sources
unpacking source archive /nix/store/27vc3vfkb7cjpjjnbdni6bmajkbbnf1a-leaps-5cf7328
source root is leaps-5cf7328
patching sources
configuring
preconfigure flux
grep: Invalid range end
preconfigure flux II
unpacking source archive /nix/store/1ki1728win67jg7jj3rqiww9nxqv8gkb-net-07b5174
building
===== getGoDirs
fluuuuuuxii 2
--11- github.com/jeffail/leaps --11-
--22- github.com/jeffail/leaps/cmd/leaps
github.com/jeffail/leaps/lib/acl
github.com/jeffail/leaps/lib/binder
github.com/jeffail/leaps/lib/curator
github.com/jeffail/leaps/lib/http
github.com/jeffail/leaps/lib/register
github.com/jeffail/leaps/lib/store
github.com/jeffail/leaps/lib/util --22-
fluuuuuuxii 2
github.com/jeffail/leaps/cmd/leaps github.com/jeffail/leaps/lib/acl github.com/jeffail/leaps/lib/binder github.com/jeffail/leaps/lib/curator github.com/jeffail/leaps/lib/http github.com/jeffail/leaps/lib/register github.com/jeffail/leaps/lib/store github.com/jeffail/leaps/lib/util
go install ... github.com/jeffail/leaps/cmd/leaps github.com/jeffail/leaps/lib/acl github.com/jeffail/leaps/lib/binder github.com/jeffail/leaps/lib/curator github.com/jeffail/leaps/lib/http github.com/jeffail/leaps/lib/register github.com/jeffail/leaps/lib/store github.com/jeffail/leaps/lib/util
===== buildGoDir install, github.com/jeffail/leaps/cmd/leaps github.com/jeffail/leaps/lib/acl github.com/jeffail/leaps/lib/binder github.com/jeffail/leaps/lib/curator github.com/jeffail/leaps/lib/http github.com/jeffail/leaps/lib/register github.com/jeffail/leaps/lib/store github.com/jeffail/leaps/lib/util
---flux 1---
---/flux 1---
---flux 11 ---
---/flux 11 ---
github.com/jeffail/leaps/vendor/github.com/garyburd/redigo/internal
github.com/jeffail/leaps/vendor/github.com/jeffail/util/log
github.com/jeffail/leaps/vendor/github.com/elazarl/go-bindata-assetfs
github.com/jeffail/leaps/vendor/github.com/garyburd/redigo/redis
github.com/jeffail/leaps/vendor/github.com/go-sql-driver/mysql
github.com/jeffail/leaps/vendor/github.com/satori/go.uuid
github.com/jeffail/leaps/vendor/github.com/lib/pq/oid
github.com/jeffail/leaps/vendor/github.com/lib/pq
github.com/jeffail/leaps/lib/util
github.com/jeffail/leaps/vendor/github.com/golang/protobuf/proto
github.com/jeffail/leaps/lib/acl
golang.org/x/net/proxy
github.com/jeffail/leaps/vendor/github.com/jeffail/gabs
golang.org/x/net/websocket
github.com/jeffail/leaps/lib/store
github.com/jeffail/leaps/lib/register
github.com/jeffail/leaps/vendor/github.com/amir/raidman/proto
github.com/jeffail/leaps/vendor/github.com/amir/raidman
github.com/jeffail/leaps/vendor/github.com/jeffail/util/metrics
github.com/jeffail/leaps/lib/binder
github.com/jeffail/leaps/lib/curator
github.com/jeffail/leaps/lib/http
github.com/jeffail/leaps/cmd/leaps
installing
/tmp/nix-build-go1.6-leaps-20160626-5cf7328.drv-0/go /tmp/nix-build-go1.6-leaps-20160626-5cf7328.drv-0
/tmp/nix-build-go1.6-leaps-20160626-5cf7328.drv-0
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/h01809qll0llrhh52jq4v7xjf4zkfrp1-go1.6-leaps-20160626-5cf7328
patching script interpreter paths in /nix/store/h01809qll0llrhh52jq4v7xjf4zkfrp1-go1.6-leaps-20160626-5cf7328
/nix/store/h01809qll0llrhh52jq4v7xjf4zkfrp1-go1.6-leaps-20160626-5cf7328/share/go/src/github.com/jeffail/leaps/vendor/github.com/golang/protobuf/ptypes/regen.sh: interpreter directive changed from "/bin/bash -e" to "/nix/store/d44582rghk696yw704sh5nbvbpnm69iv-bash-4.3-p42/bin/bash -e"
shrinking RPATHs of ELF executables and libraries in /nix/store/m88pyqrd5syzr8h70jnk6ag9yccx78jy-go1.6-leaps-20160626-5cf7328-bin
shrinking /nix/store/m88pyqrd5syzr8h70jnk6ag9yccx78jy-go1.6-leaps-20160626-5cf7328-bin/bin/leaps
stripping (with flags -S) in /nix/store/m88pyqrd5syzr8h70jnk6ag9yccx78jy-go1.6-leaps-20160626-5cf7328-bin/bin
patching script interpreter paths in /nix/store/m88pyqrd5syzr8h70jnk6ag9yccx78jy-go1.6-leaps-20160626-5cf7328-bin
building path(s) ‘/nix/store/1b4l4csk97b51j2cxavydnhkdy9n1l2h-user-environment’
created 60 symlinks in user environment
from go2nix.
Yep, you're right there's no need to analyze dependencies from vendor
in go2nix
.
I prepared a workaround and tested it on leaps
83d4e61
I'll try to make a test case for it later and do it then.
from go2nix.
Related Issues (20)
- version naming conventions HOT 1
- Support for gb manifest files HOT 2
- Unclear what `go2nix save` is looking for HOT 6
- Gopath detection broken HOT 2
- New release? HOT 2
- Undeclared dependency on nix-prefetch-git HOT 1
- Missing dependencies on Siad HOT 1
- Only imported used VCS's
- Add flag to configure target file. HOT 1
- How to generate expressions for Hugo? HOT 2
- Help generating a package for Leanote HOT 4
- Cannot work out how to package rabbitmq-explorer HOT 5
- Does the package need to be a git repository? HOT 3
- nix-prefetch-git fails without NIX_REMOTE being set (nix 2.0)
- Improve documentation on where to run go2nix HOT 1
- Mention dep2nix HOT 5
- Unable to find vendored packages HOT 1
- Request a better error reporting
- go2nix probably can't be called in a builder because nix-prefetch-git wants access to the store HOT 2
- Cannot find branch of package HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go2nix.