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

Properly handle spaces in the path of gemset.nix #55

Merged
merged 1 commit into from May 1, 2019

Conversation

manveru
Copy link
Collaborator

@manveru manveru commented May 1, 2019

This should fix #53

@manveru manveru added the bug label May 1, 2019
@manveru manveru self-assigned this May 1, 2019
Copy link
Member

@zimbatm zimbatm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@manveru manveru merged commit a5aa366 into master May 1, 2019
@manveru manveru deleted the gemset-nix-spaces branch May 1, 2019 12:54
@@ -163,7 +163,7 @@ def parse_gemset
path = File.expand_path(options[:gemset])
return {} unless File.file?(path)
json = Bundix.sh(
NIX_INSTANTIATE, '--eval', '-E', "builtins.toJSON(import #{path})")
NIX_INSTANTIATE, '--eval', '-E', %(builtins.toJSON (import "#{path}")))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we use Nixer here, it will handle escaping quotes and stuff too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bundix -l fails when path has spaces
3 participants