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

Install if frontend command exist #25

Open
dermatz opened this issue Jul 1, 2024 · 2 comments
Open

Install if frontend command exist #25

dermatz opened this issue Jul 1, 2024 · 2 comments
Assignees

Comments

@dermatz
Copy link
Owner

dermatz commented Jul 1, 2024

Could not run/install command ddev frontend init if "frontend" command already exists.

@dermatz dermatz changed the title Install if frotnend command exist Install if frontend command exist Jul 1, 2024
@Morgy93 Morgy93 self-assigned this Jul 1, 2024
@Morgy93
Copy link
Collaborator

Morgy93 commented Jul 1, 2024

It throws the error:

NOT overwriting .ddev/commands/web/frontend.
The #ddev-generated signature was not found in the file, so it will not be overwritten.
You can remove the file and use DDEV get again if you want it to be replaced: signature was not found in file .ddev/commands/web/frontend 

So it's by design and I think we should not interfere with it. 😕

@rfay
Copy link

rfay commented Jul 1, 2024

Apparently the frontend has been modified by the user, since the original has #ddev-generated in it:

https://github.com/dermatz/ddev-woodoo-buildtools-magento/blob/main/commands/web/frontend#L2

So if you don't care about the modifications, just remove that file and a ddev get will work without errors.

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

3 participants