Comments (5)
It's an interesting use case, but a --no-download flag that applies only to source URLs but not to rocks and rockspecs would be confusing. I just pushed a flag called --only-sources-from, which restricts which URLs can be used. For example:
luarocks build foobar --only-sources-from=luaforge.net
This is plain string matching, so this works:
luarocks build luaposix --only-sources-from=github.com/downloads/rrthomas/
I didn't use patterns to avoid surprises (such as "." having a special meaning).
As a special case (?), this has the same effect as the --no-download flag you suggested:
luarocks build foobar --only-sources-from=""
from luarocks.
On Tue, Oct 11, 2011 at 09:06, Hisham Muhammad
[email protected]
wrote:
It's an interesting use case, but a --no-download flag that applies only to source URLs but not to rocks and rockspecs would be confusing.
But maybe it should apply to everything? If we need anything that
is not in the --only-from= repo, fail. Or am I missing something?
I just pushed a flag called --only-sources-from, which restricts which URLs can be used. For example:
luarocks build foobar --only-sources-from=luaforge.net
This is plain string matching, so this works:
luarocks build luaposix --only-sources-from=github.com/downloads/rrthomas/
I didn't use patterns to avoid surprises (such as "." having a special meaning).
As a special case (?), this has the same effect as the --no-download flag you suggested:
luarocks build foobar --only-sources-from=""
Thank you!
Alexander.
from luarocks.
It's an interesting use case, but a --no-download flag that applies only to source URLs but not to rocks
and rockspecs would be confusing.But maybe it should apply to everything? If we need anything that is not in the --only-from= repo, fail.
Or am I missing something?
As far as I can tell, --only-from already does that for rocks and rockspecs. For example, on an empty tree, run:
luarocks build copas --only-from=http://luarocks.org/repositories/rocks-scm
It fails because luasocket is not available in rocks-scm.
from luarocks.
On Tue, Oct 11, 2011 at 18:23, Hisham Muhammad
[email protected]
wrote:
It's an interesting use case, but a --no-download flag that applies only to source URLs but not to rocks
and rockspecs would be confusing.
But maybe it should apply to everything? If we need anything that is not in the --only-from= repo, fail.
Or am I missing something?As far as I can tell, --only-from already does that for rocks and rockspecs (example: on an empty tree, run:
luarocks build copas --only-from=http://luarocks.org/repositories/rocks-scm
It fails because luasocket is not available in rocks-scm.
Makes sense, thanks.
Alexander.
from luarocks.
Closing this since the available functionality seems to be sufficient.
from luarocks.
Related Issues (20)
- `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')
- Non-root "Luarocks install" should suggest --local installation HOT 1
- luarocks-admin add AWS S3 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.