Comments (15)
What's the working directory?
from go2nix.
I used this: https://github.com/kamilchm/go2nix#example-leaps, so I cd
into src/github.com/bakape/meguca
(the package I was attempting to save) and used go2nix save
.
from go2nix.
Is src/github.com/bakape/meguca
inside /run/user/1000/tmp.pY8OMnWUi5/
(the $GOPATH
)?
Did you run go build
in src/github.com/bakape/meguca
before go2nix save
?
from go2nix.
Indirectly, yes.
https://github.com/bakape/meguca/blob/master/Makefile#L29
/run/user/1000/tmp.pY8OMnWUi5/
is in fact the $GOPATH
.
from go2nix.
Is
src/github.com/bakape/meguca
inside/run/user/1000/tmp.pY8OMnWUi5/
(the$GOPATH
)?
Misread, the answer is no, /run/user/1000/tmp.pY8OMnWUi5/
is the $GOPATH
, however the makefile may modify it.
Edit: ...or not, that's old behavior, makefile shouldn't be messing it up.
from go2nix.
Right, I had forgotten.
The same thing will happen with hydron.
from go2nix.
go2nix
requires the package you save
and all its dependencies to reside inside the GOPATH
from go2nix.
As far as I'm aware, that is the case, and this used to work in the past, but I believe @bakape changed to go modules and is requiring the v2 branch of thumbnailer now instead of master.
from go2nix.
Seeing the go.mod
in the repo I would suggest to try the new https://nixos.org/nixpkgs/manual/#ssec-go-modules or https://github.com/adisbladis/vgo2nix
from go2nix.
For the first link, can I assume that means I could just convert the entire meguca derivation to buildGoModule
, or is it something else? Also thank you for referring me to those two links.
from go2nix.
Converting the meguca derivation would be a move in the right direction, although I'm not sure if there's no corner cases in maguca not handled in buildGoModule
.
from go2nix.
Well I think I have enough information to fix this now.
Is this something planned to be implemented or fixed in this project, or should the issue be closed?
from go2nix.
This project will not support go modules in any way so I would close it.
from go2nix.
Thank you for the help.
from go2nix.
@Chiiruno
I'm still using the master branch of thumbnailer. The difference is master being properly marked as the v2 branch now as required by the Go module system.
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
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.