NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.28k stars 13.53k forks source link

Spring Boot CLI is not able to install extensions #94778

Open TYsewyn opened 4 years ago

TYsewyn commented 4 years ago

After installing the spring-boot-cli package I'm not able to add extensions to it.

To Reproduce Steps to reproduce the behavior:

  1. nix-env -i spring-boot-cli
  2. spring install org.springframework.cloud:spring-cloud-cli:2.2.2.RELEASE

After step 2 you'll get an output like this:

$ spring install org.springframework.cloud:spring-cloud-cli:2.2.2-RELEASE
Failed to create ext directory /nix/store/aafmpnf62158grs412cjzzsg66nd95xx-spring-boot-cli-2.3.1/lib/ext

Expected behavior Expected to have the extension to Spring Boot CLI installed.

Additional context Manually creating the ext directory using sudo solves the problem.

Notify maintainers @moaxcp

Metadata Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.3.0-1023-aws, Ubuntu, 18.04.4 LTS (Bionic Beaver)`
 - multi-user?: `no`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.4`
 - channels(ubuntu): `"nixpkgs-20.09pre237131.2d6cbbe4627"`
 - nixpkgs: `/home/ubuntu/.nix-defexpr/channels/nixpkgs`
moaxcp commented 4 years ago

Thanks for the submitting this issue. One way I think this could be addressed is by packaging the extentions in nix and allowing them to be added to the spring-boot-cli expression as an override or a nix module.

Im not sure we could get the install and uninstall commands to work unless there is a way to change the dir used.

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info