Skip to content
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

Flex removing the pack recipe #1030

Open
emodric opened this issue Nov 12, 2024 · 2 comments
Open

Flex removing the pack recipe #1030

emodric opened this issue Nov 12, 2024 · 2 comments

Comments

@emodric
Copy link
Contributor

emodric commented Nov 12, 2024

I have a custom recipes repository with one Flex pack ("type": "symfony-pack") and that pack has its own recipe to add a couple of files, nothing fancy.

On one of our machines, Flex unconfigures the recipe after requiring the pack, which means that the files are not added to the project. On other machines, the recipe is left installed and is not unconfigured which leaves the files installed. I can't figure out why would Flex work any differently on one machine, and the other way on all others. Can someone shed some light on this?

Example outputs:

On the machine which unconfigures the recipe:

Unpacking Symfony packs
  - Unpacked netgen/symfony-skeleton
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 0 updates, 1 removal
  - Removing netgen/symfony-skeleton (dev-master dae1d69)
Generating autoload files
119 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

Symfony operations: 1 recipe (b856ae55b2b21b7d954c1f807aaee93f)
  - Unconfiguring netgen/symfony-skeleton (>=1.0): From github.com/netgen/recipes:master
Executing script cache:clear [OK]
Executing script assets:install public [OK]
Executing script importmap:install [OK]

On other machines which leave the recipe installed:

Unpacking Symfony packs
  - Unpacked netgen/symfony-skeleton
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 0 updates, 1 removal
  - Removing netgen/symfony-skeleton (dev-master dae1d69)
Generating autoload files
119 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

Run composer recipes at any time to see the status of your Symfony recipes.

Executing script cache:clear [OK]
Executing script assets:install public [OK]
Executing script importmap:install [OK]
@stof
Copy link
Member

stof commented Nov 12, 2024

is your symfony.lock committed in the repo, or do you have separate lock files on both machines ?

@emodric
Copy link
Contributor Author

emodric commented Nov 12, 2024

We're testing with instantiating from scratch, using symfony/skeleton, symfony/webapp-pack and then our pack, so no prior symfony.lock file.

@emodric emodric closed this as completed Nov 12, 2024
@emodric emodric reopened this Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants