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

nix-prefetch-git: fix json output. #19369

Merged
merged 2 commits into from
Dec 14, 2016
Merged

nix-prefetch-git: fix json output. #19369

merged 2 commits into from
Dec 14, 2016

Conversation

Mic92
Copy link
Member

@Mic92 Mic92 commented Oct 8, 2016

Motivation for this change

fix json output

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • OS X
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@mention-bot
Copy link

@Mic92, thanks for your PR! By analyzing the history of the files in this pull request, we identified @ryantrinkle, @DavidEGrayson and @timbertson to be potential reviewers.

@domenkozar
Copy link
Member

This is becoming a big nightmare. Could we use a library to generate/escape the json?

@Mic92
Copy link
Member Author

Mic92 commented Oct 9, 2016

Well, it looks like any decent programming languages gets replaced by brittle shell scripts in Nixos.
At least this part should be rfc conform now.

@DavidEGrayson
Copy link
Contributor

Haskell would be a good choice! Some other developers and I made a related utility using Haskell:

https://github.com/expipiplus1/update-nix-fetchgit

@Mic92
Copy link
Member Author

Mic92 commented Oct 11, 2016

But this tools does not replace nix-fetch-git really.

@fpletz
Copy link
Member

fpletz commented Nov 28, 2016

Are the zfstools and rancher-compose changes related to this PR?

json requires certain characters to be escaped in strings.
in some cases `git show` include tag information in the output
this is suppressed by the parameter '-1'
@Mic92
Copy link
Member Author

Mic92 commented Dec 5, 2016

@fpletz no, rebased against the wrong master. This is fixed now.

@Mic92 Mic92 merged commit f90d632 into NixOS:master Dec 14, 2016
@Mic92
Copy link
Member Author

Mic92 commented Dec 14, 2016

merged because nobody seems to work on a better solution and this one still fix the problem.

@Mic92 Mic92 deleted the nix-prefetch-git branch December 14, 2016 07:33
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

5 participants