Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infer name and version for luarocks write-rockspec without args #560

Merged
merged 2 commits into from
May 22, 2016

Conversation

mpeterv
Copy link
Contributor

@mpeterv mpeterv commented May 22, 2016

  • Default path for write-rockspec is now ..
  • Use scm as default version in all cases.
  • Infer rock name as base directory of current path when passing . as path.

As a result, luarocks write-rockspec with no arguments creates an scm rockspec. It's quite nice for version control based rocks. Rock name is inferred from current directory as the last path component. Would be nice to be able to do this for arbitrary paths but there is no utility function for collapsing paths containing .. and ..

* Default path for `write-rockspec` is now `.`.
* Use `scm` as default version in all cases.
* Infer rock name as base directory of current path when
  passing `.` as path.

As a result, `luarocks write-rockspec` with no arguments
creates an scm rockspec.
@hishamhm hishamhm merged commit 3f6eda2 into luarocks:master May 22, 2016
@mpeterv mpeterv deleted the write-rockspec-default-args branch May 22, 2016 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants