You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PHP_INI_SCAN_DIR env is very useful but the current path leads to problems.
The conf directory is placed along with the version directories inside scoop/apps/php
Scoop picks conf as the latest version and also updates from conf to $latest even if $latest is already installed.
$ scoop list
Installed apps:
php (conf)
$ scoop update php
updating php (conf -> 7.1.0)
uninstalling php (conf)
installing php (7.1.0)
creating shim for php
creating shim for php-cgi
running post-install script...
php was updated from conf to 7.1.0
I would suggest creating a separate directory conf along apps, cache, shims for such version independent configurations. For the php example it would be scoop/conf/php/ and the env_set would be set to following (or we define a $config_dir variable)
Yes, I agree ~/scoop/conf/php would be a better location.
And it would also be good to allow $conf_dir in the env_set. I prefer $conf_dir to $config_dir for consistency, and to avoid confusion with scoop config.
Maybe we could add a post_install script to php.json to look for ~/scoop/apps/php/conf, and move it to ~/scoop/conf/php if it exists?
…t found
If the old manifest is not available no $architecture is loaded
resulting in an error while installing the update.
This happend for example for php if there was a conf directory along the
versions. `conf` will be picked up as latest version but there is no
manifest inside. ScoopInstaller#1185
The
PHP_INI_SCAN_DIR
env is very useful but the current path leads to problems.The
conf
directory is placed along with the version directories insidescoop/apps/php
Scoop picks
conf
as the latest version and also updates fromconf
to$latest
even if$latest
is already installed.I would suggest creating a separate directory
conf
alongapps
,cache
,shims
for such version independent configurations. For thephp
example it would bescoop/conf/php/
and theenv_set
would be set to following (or we define a$config_dir
variable)This will break current
php
installations!A dirty workaround could be filtering
conf
as version inside theversions
function fromlib/versions.ps1
The text was updated successfully, but these errors were encountered: