!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

67 Members
A room for PHP developers running on Nix20 Servers

Load older messages


SenderMessageTime
20 Jan 2025
@piotrkwiecinski:matrix.orgpiotrkwiecinskiassuming we don't send --no-plugins explicitly 12:29:56
@drupol:matrix.orgPolwe do IIRC12:30:44
@piotrkwiecinski:matrix.orgpiotrkwiecinskiwe have it as a flag and reproducer sets it to false so in theory --no-plugins shouldn't be added but it needs confirmation if it actually works :)12:32:35
@piotrkwiecinski:matrix.orgpiotrkwiecinski

https://getcomposer.org/doc/06-config.md#allow-plugins
Defaults to {} which does not allow any plugins to be loaded.

As of Composer 2.2.0, the allow-plugins option adds a layer of security allowing you to restrict which Composer plugins are able to execute code during a Composer run.

When a new plugin is first activated, which is not yet listed in the config option, Composer will print a warning. If you run Composer interactively it will prompt you to decide if you want to execute the plugin or not.

Use this setting to allow only packages you trust to execute code. Set it to an object with package name patterns as keys. The values are true to allow and false to disallow while suppressing further warnings and prompts.

12:36:10
@piotrkwiecinski:matrix.orgpiotrkwiecinskiSo if you have the allow-plugins in composer.json with "true"s it won't disable these plugins12:36:58
@drupol:matrix.orgPolThis is what I meant: https://github.com/NixOS/nixpkgs/blob/f5b5e4d69cb858b79bfbc300980b13b4218d5b01/pkgs/build-support/php/builders/v2/hooks/composer-vendor-hook.sh#L3412:50:07
@piotrkwiecinski:matrix.orgpiotrkwiecinskiYeah but setting: composerNoPlugins = false; composerNoScripts = false;12:52:17
@piotrkwiecinski:matrix.orgpiotrkwiecinskishould prevent it right?12:52:22
@drupol:matrix.orgPolTechnically yeah12:53:13
@drupol:matrix.orgPolBut did they use it?12:53:20
@piotrkwiecinski:matrix.orgpiotrkwiecinskiYes12:53:25
@drupol:matrix.orgPolah.12:53:42
@drupol:matrix.orgPolOn another topic12:57:12
@drupol:matrix.orgPol
❯ nix build .#phpdocumentor -L --rebuild
phpdocumentor> Running phase: unpackPhase
phpdocumentor> unpacking source archive /nix/store/30ryfv45bmdj5nc3xbqfdrgb41wgdvr7-source
phpdocumentor> source root is source
phpdocumentor> Running phase: patchPhase
phpdocumentor> Running phase: updateAutotoolsGnuConfigScriptsPhase
phpdocumentor> Running phase: configurePhase
phpdocumentor> Executing composerInstallConfigureHook
phpdocumentor> Setting COMPOSER_ROOT_VERSION to 3.6.0
phpdocumentor> Finished composerInstallConfigureHook
phpdocumentor> Running phase: buildPhase
phpdocumentor> Executing composerInstallBuildHook
phpdocumentor> Finished composerInstallBuildHook
phpdocumentor> Running phase: checkPhase
phpdocumentor> Executing composerInstallCheckHook
phpdocumentor> Finished composerInstallCheckHook
phpdocumentor> Running phase: installPhase
phpdocumentor> Executing composerInstallInstallHook
phpdocumentor> Creating symlink bin/phpdoc...
phpdocumentor> Creating symlink bin/phpdoc.php...
phpdocumentor> Finished composerInstallInstallHook
phpdocumentor> Running phase: fixupPhase
phpdocumentor> shrinking RPATHs of ELF executables and libraries in /nix/store/ls48ivg6jn95fm7f8ip6207i0ldj90x6-phpdocumentor-3.6.0
phpdocumentor> shrinking /nix/store/ls48ivg6jn95fm7f8ip6207i0ldj90x6-phpdocumentor-3.6.0/bin/phpdoc
phpdocumentor> checking for references to /build/ in /nix/store/ls48ivg6jn95fm7f8ip6207i0ldj90x6-phpdocumentor-3.6.0...
phpdocumentor> patching script interpreter paths in /nix/store/ls48ivg6jn95fm7f8ip6207i0ldj90x6-phpdocumentor-3.6.0
phpdocumentor> /nix/store/ls48ivg6jn95fm7f8ip6207i0ldj90x6-phpdocumentor-3.6.0/share/php/phpdocumentor/bin/phpdoc: interpreter directive changed from "#!/usr/bin/env php" to "/nix/store/r2xq8q0ngikflpnjpbai4pycqkdycikl-php-with-extensions-8.3.15/bin/php"
phpdocumentor> /nix/store/ls48ivg6jn95fm7f8ip6207i0ldj90x6-phpdocumentor-3.6.0/share/php/phpdocumentor/bin/yaml-lint: interpreter directive changed from "#!/usr/bin/env php" to "/nix/store/r2xq8q0ngikflpnjpbai4pycqkdycikl-php-with-extensions-8.3.15/bin/php"
phpdocumentor> /nix/store/ls48ivg6jn95fm7f8ip6207i0ldj90x6-phpdocumentor-3.6.0/share/php/phpdocumentor/bin/githubaction: interpreter directive changed from "#!/usr/bin/env php" to "/nix/store/r2xq8q0ngikflpnjpbai4pycqkdycikl-php-with-extensions-8.3.15/bin/php"
phpdocumentor> /nix/store/ls48ivg6jn95fm7f8ip6207i0ldj90x6-phpdocumentor-3.6.0/share/php/phpdocumentor/bin/phpdoc.php: interpreter directive changed from "#!/usr/bin/env php" to "/nix/store/r2xq8q0ngikflpnjpbai4pycqkdycikl-php-with-extensions-8.3.15/bin/php"
phpdocumentor> /nix/store/ls48ivg6jn95fm7f8ip6207i0ldj90x6-phpdocumentor-3.6.0/share/php/phpdocumentor/tools/box: interpreter directive changed from "#!/usr/bin/env php" to "/nix/store/r2xq8q0ngikflpnjpbai4pycqkdycikl-php-with-extensions-8.3.15/bin/php"
phpdocumentor> /nix/store/ls48ivg6jn95fm7f8ip6207i0ldj90x6-phpdocumentor-3.6.0/share/php/phpdocumentor/vendor/symfony/yaml/Resources/bin/yaml-lint: interpreter directive changed from "#!/usr/bin/env php" to "/nix/store/r2xq8q0ngikflpnjpbai4pycqkdycikl-php-with-extensions-8.3.15/bin/php"
phpdocumentor> /nix/store/ls48ivg6jn95fm7f8ip6207i0ldj90x6-phpdocumentor-3.6.0/share/php/phpdocumentor/vendor/nikic/php-parser/bin/php-parse: interpreter directive changed from "#!/usr/bin/env php" to "/nix/store/r2xq8q0ngikflpnjpbai4pycqkdycikl-php-with-extensions-8.3.15/bin/php"
phpdocumentor> rewriting symlink /nix/store/ls48ivg6jn95fm7f8ip6207i0ldj90x6-phpdocumentor-3.6.0/bin/phpdoc.php to be relative to /nix/store/ls48ivg6jn95fm7f8ip6207i0ldj90x6-phpdocumentor-3.6.0
phpdocumentor> rewriting symlink /nix/store/ls48ivg6jn95fm7f8ip6207i0ldj90x6-phpdocumentor-3.6.0/bin/.phpdoc-wrapped to be relative to /nix/store/ls48ivg6jn95fm7f8ip6207i0ldj90x6-phpdocumentor-3.6.0
~/C/N/nixpkgs > (~push-nvstlwpxlprr (no description set) xlmlx 7b6bce) ❯ 
12:57:24
@drupol:matrix.orgPolThis is now fixed :)12:57:27
@drupol:matrix.orgPolIt's been a while I wanted to see it fixed.12:57:38
@drupol:matrix.orgPolThe correct SHA is: sha256-LESUhPjpj1KkFkB+JEOCGU9c6LuDQJB5Dtc/q5Bt3Og=12:57:51
@drupol:matrix.orgPol * The correct SHA is: sha256-LESUhPjpj1KkFkB+JEOCGU9c6LuDQJB5Dtc/q5Bt3Og= 12:57:57
@piotrkwiecinski:matrix.orgpiotrkwiecinski
    specified: sha256-PVaa0o8daoqXs8l3bF/Fsmtx3bdpO2uXTnR4tx8cUC4=
        got:    sha256-LESUhPjpj1KkFkB+JEOCGU9c6LuDQJB5Dtc/q5Bt3Og=
13:03:01
@piotrkwiecinski:matrix.orgpiotrkwiecinskiyeah get the same locally13:03:09
@drupol:matrix.orgPol \o/ 13:03:12
@drupol:matrix.orgPolhallelujah13:03:17
@drupol:matrix.orgPolhttps://github.com/NixOS/nixpkgs/pull/37531113:23:22
@piotrkwiecinski:matrix.orgpiotrkwiecinskilooks promising I'll have a time to play around with it in 4-5 h13:30:34
@piotrkwiecinski:matrix.orgpiotrkwiecinskiI run the drupal reproducer using with nixpkgs from the branch and seems to work16:44:00
@drupol:matrix.orgPolDoes it have an impact on other derivation?20:21:52
21 Jan 2025
@piotrkwiecinski:matrix.orgpiotrkwiecinskiI haven't done too much additional testing yet. I had a lot of firefighting at work. Most likely I won't have too much time before friday.22:02:21
22 Jan 2025
@drupol:matrix.orgPolIt's fine, I tested it and no hash change :)09:26:59
2 Feb 2025
@pederbs:pvv.ntnu.nopbsds changed their display name from pbsds to pbsds (FOSDEM).16:04:35
3 Feb 2025
@pederbs:pvv.ntnu.nopbsds changed their display name from pbsds (FOSDEM) to pbsds.16:25:17

Show newer messages


Back to Room ListRoom Version: 6