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

bfg-repo-cleaner: init -> 1.12.15 #25396

Closed
wants to merge 1 commit into from
Closed

Conversation

leenaars
Copy link
Contributor

@leenaars leenaars commented May 1, 2017

Motivation for this change

BFG Repo-Cleaner is a useful tool for changing git history and a dependency for cregit (https://github.com/cregit/cregit), a tool to determine authorship inside git repositories I'm packaging.

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
    • macOS
    • 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.

@copumpkin
Copy link
Member

@Mic92
Copy link
Member

Mic92 commented May 1, 2017

an top-level alias might help.

@Mic92 Mic92 added the 2.status: duplicate This is a duplicate of another issue or PR label May 1, 2017
@leenaars
Copy link
Contributor Author

leenaars commented May 1, 2017

I'm building my version from source, and need this because I need to patch it for use with cregit - which uses a patch which has been a pull request since 2015:

rtyley/bfg-repo-cleaner#83

(a dependency for https://github.com/cregit/cregit)

So what should I do? Add as a private dependency for cregit, or replace the version in pkgs?

@copumpkin
Copy link
Member

Unless you go through some weird hoops that we haven't standardized yet, your source sbt build is going to be impure (it'll reach out to resolve ivy dependencies and even the scala compiler/stdlib itself), and thus will not work on Hydra or many Nix configurations.

@copumpkin
Copy link
Member

I don't have a good solution; you could make a separate expression or put the work into purifying the sbt build, but for now I'd just leave your version in the same file as cregit's expression with a comment explaining what's up. I also posted a comment upstream on BFG asking them to merge the PR

@leenaars
Copy link
Contributor Author

leenaars commented May 1, 2017

Will do so.

@leenaars leenaars closed this May 1, 2017
@copumpkin
Copy link
Member

@leenaars cool, thanks! Note that cregit will still not build on Hydra until the purity issue is resolved. To test what would happen on Hydra, run nix-build with --option build-use-sandbox true, which will disable all network connectivity from the builder.

@changlinli
Copy link
Contributor

@Mic92 Fair enough. #25420

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: duplicate This is a duplicate of another issue or PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants