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

scalafmt: 0.6.8 -> 1.3.0 #32442

Merged
merged 1 commit into from Dec 14, 2017
Merged

scalafmt: 0.6.8 -> 1.3.0 #32442

merged 1 commit into from Dec 14, 2017

Conversation

markus1189
Copy link
Contributor

@markus1189 markus1189 commented Dec 8, 2017

Motivation for this change

Scalafmt does no longer (already pretty long :D) package a fat-jar, which required a larger change to fetch all jar dependencies via nix, before we could use the newer versions.

I finally came around to creating a script that automates the creation of a file support.nix which lists all of them and fetches them using fetchMavenArtifact: https://gist.github.com/markus1189/e48f8bbaa63b1272d39d74c498116003.

With that I updated the the build to version 1.3.0.

Question: I saw that it should be enough to add the fetchMavenArtifact results to the buildInputs, but it seems like they never got added to the CLASSPATH (as tested via echo $CLASSPATH inside the builder). That's why I added them manually in the makeWrapper, but if there is an easier way let me know.

/cc @olafurpg FYI :)

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
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • 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.

24 Pull Requests (https://24pullrequests.com)

https://24pullrequests.com

@markus1189
Copy link
Contributor Author

@volth Wow that would make it A LOT easier. I would be okay with waiting for the coursier merge, given that it avoids having to execute my script.

@markus1189
Copy link
Contributor Author

One disadvantage is that the dependencies will never be shared with other projects right?

@markus1189
Copy link
Contributor Author

Fair enough, I think convenience is more important here

@markus1189
Copy link
Contributor Author

So this is ready for merge I think ;)

@pSub pSub merged commit b11254d into NixOS:master Dec 14, 2017
@orivej
Copy link
Contributor

orivej commented Dec 14, 2017

It does not build: https://hydra.nixos.org/build/65996166

@markus1189
Copy link
Contributor Author

markus1189 commented Dec 14, 2017 via email

@orivej
Copy link
Contributor

orivej commented Dec 14, 2017

I'll fix it.

orivej added a commit to orivej/nixpkgs that referenced this pull request Dec 14, 2017
Do not override phases for the fixupPhase to patching the script interpreter of .coursier-wrapped.

Fixes the sandboxed build of scalafmt: NixOS#32442 (comment)
@orivej orivej mentioned this pull request Dec 14, 2017
8 tasks
@markus1189
Copy link
Contributor Author

markus1189 commented Dec 15, 2017 via email

@markus1189
Copy link
Contributor Author

markus1189 commented Dec 15, 2017 via email

@markus1189
Copy link
Contributor Author

@volth Could you give me a pointer to where I should look for hydra builds etc?

@orivej
Copy link
Contributor

orivej commented Dec 15, 2017

I have pushed 0ea7ad1 to make Hydra try to rebuild scalafmt deps.

@orivej
Copy link
Contributor

orivej commented Dec 16, 2017

Built: https://hydra.nixos.org/build/66111145

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

Successfully merging this pull request may close these issues.

None yet

4 participants