-
-
Notifications
You must be signed in to change notification settings - Fork 931
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
[Bug]: Non-canonical default for GRADLE_USER_HOME in gradle #5006
Comments
I looked around a bit and found that usage of persist directory in scoop is sadly by design. In that case maybe we can consider some of these options instead:
|
Also this is somewhat inconsistent with scoop's maven - which still uses |
I have believed that any migration should be done manually by the user, but some people don't think so.
That's fine, then tell the users |
Btw what is the rationale for moving application config/cache to persist directory? I've found https://github.com/ScoopInstaller/Scoop/wiki/Persistent-data but that answers what/when but not why. |
Scoop usually relocates files/dirs(configs, profiles, etc.) of programs via files, environment variables, or CLI options. btw, that's why I use Scoop instead of winget or choco, we can got this with any installation but Scoop is more intuitive and easier. |
@mwisnicki could you make a PR to include an additional condition which checks for the existence of ~/.gradle folder in the post_install script? |
Prerequisites
Package Name
gradle
Expected/Current Behaviour
I'm migrating manually installed gradle to the one managed by scoop and expect it to follow reasonable/canonical defaults.
The default value of
GRADLE_USER_HOME
for upstream gradle is~/.gradle
however gradle package from scoop effectively changes that to~\scoop\apps\gradle\current\.gradle
.This means that caches are not reused and I'm wasting a ton of space.
Scoop should follow Principle Of Least Surprise and stick to upstream defaults unless there is a good justification for doing so and in which case it must be documented.
Related: #4512
Steps to Reproduce
Possible Solution
Default
GRADLE_USER_HOME
to~/.gradle
or do not set it at all.OR
Document why it absolutely has to be non-standard by default.
Scoop and Buckets Version
Scoop Config
PowerShell Version
Additional Softwares
No response
The text was updated successfully, but these errors were encountered: