| 15 Apr 2023 |
Pol | There is also a remark about deployer in the OP message. | 17:07:37 |
Pol | Jan Tojnar: unable to use the tag in `src` for deployer. It's missing from the repo. | 18:07:28 |
Jan Tojnar | Pol: notice the ^ | 18:07:58 |
Pol | Omg | 18:08:04 |
Pol | So smart | 18:08:12 |
Pol | Will do it | 18:08:15 |
Pol | After lunch. | 18:08:21 |
Pol | Fixed ! | 19:04:44 |
Jan Tojnar | Pol: regarding the programs, https://getcomposer.org/doc/articles/vendor-binaries.md#can-vendor-binaries-be-installed-somewhere-other-than-vendor-bin- | 19:18:08 |
Pol | yes? | 19:18:17 |
Jan Tojnar | COMPOSER_BIN_DIR should work | 19:18:47 |
Jan Tojnar | or is that just for dependencies? | 19:19:23 |
Pol | Wait, I don't understand what you're trying to explain here | 19:24:31 |
Pol | I don't think this is a good idea | 19:35:47 |
Pol | For example, if we take PHPUnit, | 19:36:02 |
Pol | The binary is not inside bin/ | 19:36:14 |
Pol | https://github.com/sebastianbergmann/phpunit/blob/main/composer.json | 19:36:34 |
Pol | That said, there is a bin attribute in the composer.json. | 19:37:09 |
Pol | I guess it would be possible to automatize the creation of the symbolic link, but I'm not sure yet. | 19:37:41 |
Pol | I guess we should loop over composer.json.bin and create the symlink. | 19:40:57 |
Pol | * I guess we should loop over composer.json.bin and create the symlinks. | 19:41:01 |
Pol | But I have no clue how we should do that yet. | 19:41:45 |
Pol | Should I use jq ? | 19:41:55 |
Pol | for bin in $(cat composer.json | jq -r '.bin'); do
ln -s $out/share/php/${finalAttrs.pname}/$bin $out/bin/$(basename $bin)
done
| 19:47:23 |
Pol | Something like that? | 19:47:27 |
Pol | I'll try | 19:47:29 |
Pol | Oh it works! | 19:48:20 |
Jan Tojnar | yeah, that's what I would do | 19:48:53 |
Pol | It's not so simple. | 19:50:27 |
Pol | It works for phpunit, not for grumphp... investigating. | 19:50:35 |