Comments (2)
Thanks for the detailed report!
"luarocks pack" on a rockspec file creates a zip with the downloaded URL and the rockspec only. So, you're right, I think the right behavior in that case would be to fail when trying to pack once the source.url entry is found to be invalid.
I can't make "luarocks pack" work on the overall contents of the current directory (like "luarocks make") because the rockspec doesn't have enough information about which files should and should not be added (an example of this situation would be build.type="command").
So, I think the solution will be to make it fail on your "luarocks pack foobar-scm-1.rockspec" and just use make + pack for a situation like this. Does that sound sensible?
(I'm not entirely comfortable with using invalid source.url entries, but the use case looks reasonable -- in fact, this may be seen as an argument for making source.url optional in the rockspec format.)
from luarocks.
No problem if LR would fail in this case. Much better than current confusing behaviour anyway.
As for invalid (or missing) source.url
, it is inevitable — for the case when rocks are to be created from unsupported source (like /was/ git+ssh or mercurial). So, it would be good if LR would support it explicitly.
I'm not sure if it is good idea to make source.url
optional, maybe it would be more readable to force users to set it to false
?
from luarocks.
Related Issues (20)
- 3.10.0 release build paralyzation issue HOT 4
- `sudo luarocks install` right after `configure && make && sudo make install` targets the local project dir HOT 3
- Feature Request: Userspace local directory restructure? HOT 1
- I can't build mime during luasocket installing HOT 4
- Invalid Debian Installation HOT 1
- Support applying patches created with `diff -Naur`
- Bug: Adding entries to .gitignore ... HOT 1
- when using luarocks3.11 config,it goes wrong HOT 1
- Could this third-party toolkit be any harder on windows? I've never done anything this hard
- Error: LuaRocks 3.11.0 bug - win32-x86_64 (fs_use_modules = true) (binary) - when installing a package that transitively depends on LuaFileSystem HOT 3
- cannot force reinstall package on v3.11.0
- enable ssl cert check by default
- How does luarocks check wether a dependency exists ? HOT 8
- API failure when uploading rockspec HOT 4
- luarocks.lock in cwd not respected by `luarocks install`
- Purl specification for Lua (Sofwtare supply chain) HOT 1
- transfer ownership of lua-vips to a new maintainer HOT 3
- Unable to do download manifests, files, etc etc HOT 2
- fetch.lua:67: attempt to index a nil value (local 'fd') HOT 1
- Non-root "Luarocks install" should suggest --local installation HOT 1
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 luarocks.