-
Notifications
You must be signed in to change notification settings - Fork 394
[v17.36.2]: Running into "Multiple possible build commands found" with builds disabled #6841
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
Comments
Our last successful deploys were on the 20th of September. On that day, netlify released a patch update that seems to have broken the deploy command if netlify builds are disabled (https://github.com/netlify/cli/blob/main/CHANGELOG.md#17362-2024-09-20). Trying to fix the issue by setting netlify version to a version before that. Submited an issue for netlify cli: netlify/cli#6841
I have the same problem, and I cannot downgrade the versions of the Netlify CLI. Moreover, the link in this error does not help to fix the problem.
|
Same issue here. In our open source repository https://github.com/nolebase/integrations , we have a custom GitHub Actions manifest running with the following command:
which will produce:
|
…#6841 Signed-off-by: Neko Ayaka <[email protected]>
Our last successful deploys were on the 20th of September. On that day, netlify released a patch update that seems to have broken the deploy command if netlify builds are disabled (https://github.com/netlify/cli/blob/main/CHANGELOG.md#17362-2024-09-20). Trying to fix the issue by setting netlify version to a version before that. Submited an issue for netlify cli: netlify/cli#6841
Our last successful deploys were on the 20th of September. On that day, netlify released a patch update that seems to have broken the deploy command if netlify builds are disabled (https://github.com/netlify/cli/blob/main/CHANGELOG.md#17362-2024-09-20). Trying to fix the issue by setting netlify version to a version before that. Submited an issue for netlify cli: netlify/cli#6841
Our last successful deploys were on the 20th of September. On that day, netlify released a patch update that seems to have broken the deploy command if netlify builds are disabled (https://github.com/netlify/cli/blob/main/CHANGELOG.md#17362-2024-09-20). Trying to fix the issue by setting netlify version to a version before that. Submited an issue for netlify cli: netlify/cli#6841
Is there any workaround? |
Yes, just pin the cli to the latest working version for now… |
Ok thanks |
Pending fix for netlify/cli#6841
Currently it is not possible to deploy a page using the Netlify CLI via GitHub Actions. This is due to the following error: Multiple possible build commands found › Error: Detected commands for: Hugo, Zola. Update your settings to specify which to use. Refer to https://ntl.fyi/dev-monorepo for more information. A bug report for this was submitted to Netlify's GitHub issue tracker on 27 September 2024 [1]. However, a fix has not yet been provided. Therefore, migrate from Netlify back to webgo. Link: netlify/cli#6841 [1] Signed-off-by: Stefan Kühnel <[email protected]>
Any update on this issue? Hitting the same thing. My [build]
publish = ".wasp/build/web-app/build/"
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
force = false% |
This has been impacting my deploys lately also. Experimentation showed that removing config.toml in the top level folder |
I ran into this issue too |
I found if you add this to your
you avoid the error |
@hjylewis thanks, that will make the original issue disappear. However, haven't managed to get anything working with 20.0.2, not sure if this is partially because of the command now. I'm mainly running into Was running into that issue previously as well, but could workaround that using the
No idea what is wrong, but I guess some of us are stuck on v17.36.2 forever |
Same issue for me, I am using The situation is:
My opinion is that The joke is that We shall just move this call into the block, problem solved. |
Thanks so much for the investigation and the fix @Florian-Mt! It looks like this may have regressed when that detection was introduced to the |
This should be fixed in v20.0.4. Can anyone here confirm? Thanks! |
Yes, it works for me, thank you for publishing the fix. |
@serhalp @Florian-Mt but can this be considered a real fix for the original problem, or rather a fix to make the hackaround work? I feel like putting Imo this should be handled by the CLI |
I wasted half a day trying to overcome this issue. Issue is present in
|
I think there's been a misunderstanding here. This is the fix. What you're referencing was a proposed workaround prior to the fix. Are you using the latest netlify-cli and still needing the workaround? If so, could you please open a new issue? It sounds like that would be a separate issue. |
Are you referring to the original issue in this thread, related to running Either way, could you share your stack (framework/bundler) and the full error message? Thank you! |
NETLIFY_AUTH_TOKEN=<token> npx netlify deploy --site 2da... --dir ./dist --message "local deploy from g-lt1" If I run this using v20.1.1, I get "Multiple possible build commands found". v20.1.0 on the other hand works as expected, no problem |
I just ran it again and it still works for me in 20.1.1. You may use |
@goastler can you please run this (from the same directory) and share the output? npx @netlify/build-info |
Describe the bug
We're building our static page in a GitHub Action and deploy just the .zip. Therefore we disabled builds on netlify. Since the 20th of September 2024, our
netlify deploy
command fails with the error (https://github.com/swisspost/design-system/actions/runs/11066480112/job/30747794144):Multiple possible build commands found › Error: Detected commands for: Hydrogen, Remix. Update your settings to specify which to use. Refer to https://ntl.fyi/dev-monorepo for more information.
However, our deploy command should disable builds:
Also, in the changelog there is a feature entry that does not seem to belong to any version (https://github.com/netlify/cli/blob/main/CHANGELOG.md#17362-2024-09-20).
Steps to reproduce
See build command and linked action runs above.
Configuration
https://github.com/swisspost/design-system/blob/main/packages/documentation/netlify.config.json
Environment
Not easy since we're installing the netlify cli only for action runs. I hope the information above is enough.
The text was updated successfully, but these errors were encountered: