-
Notifications
You must be signed in to change notification settings - Fork 84
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
PackageManager -dir does not alter installation directory #1070
Comments
Just tried
and it ends with the message Before installing a package, the package manager checks if the package is already installed somewhere, including in the user directory. If the package is already installed, it stops with the installation in order not to end up with several versions of a package in different directories. Is there a better way to do this? |
Sorry Remco, it seems I misunderstood the point of the -dir option (I thought it was meant to use an alternative user directory), and I should be using -Dbeast.user.package.dir= instead. Thanks for the clarification. Just out of curiosity, what's the true intended use case for the -dir option? |
It actually makes more sense to treat it as a user defined user directory, so when this directory is specified, the |
Looks great! Will you also add this option to PackageManager? |
206ad74 makes packagemanager set the |
Ah, sorry - I only looked at the commit referencing this issue and assumed this was the same one linked in your text. Thanks, yes this seems much more intuitive. |
The following line from the packagemanager usage
seems to suggest that by writing
I should be able to install feast in ./my_app_dir instead of the default location.
Instead, the packagemanager ignores the argument and proceeds to try to install in the standard user package directory:
Looking at the source, the -dir argument seems to add the provided path to a path list which is then assigned to the property with the hard-coded name "BEAST_PACKAGE_DIR". This property doesn't seem to be referenced at all by the getPackageUserDir() method, which instead references the "beast.user.package.dir" property.
Is this a bug? Or am I misunderstanding the purpose of -dir? For what it's worth, adding -Dbeast.user.package.dir=./my_app_dir when running packagemanager produces the expected behaviour, so I can work around this. The documentation seems wrong to me though.
The text was updated successfully, but these errors were encountered: