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

[v17.36.2]: Running into "Multiple possible build commands found" with builds disabled #6841

Open
gfellerph opened this issue Sep 27, 2024 · 5 comments
Labels
type: bug code to address defects in shipped code

Comments

@gfellerph
Copy link

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:

netlify deploy --filter @swisspost/design-system-documentation --build false --dir ${{ steps.build.outputs.folder }} --alias $url_alias

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).

image

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.

@gfellerph gfellerph added the type: bug code to address defects in shipped code label Sep 27, 2024
gfellerph added a commit to swisspost/design-system that referenced this issue Sep 27, 2024
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
@what1s1ove
Copy link

what1s1ove commented Oct 6, 2024

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.

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.

@nekomeowww
Copy link

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:

netlify deploy --dir 'docs/.vitepress/dist' --prod --debug

which will produce:

Multiple possible build commands found
 ›   Warning: Error: Detected commands for: Hydrogen, Remix. Update your settings to specify which to use. Refer to https://ntl.fyi/dev-monorepo for more information.
 ›       at detectFrameworkSettings (file:///home/runner/setup-pnpm/node_modules/.bin/global/5/.pnpm/[email protected]_@[email protected]/node_modules/netlify-cli/dist/utils/build-info.js:71:19)
 ›       at async deploy (file:///home/runner/setup-pnpm/node_modules/.bin/global/5/.pnpm/[email protected]_@[email protected]/node_modules/netlify-cli/dist/commands/deploy/deploy.js:642:22)
 ›       at async BaseCommand.<anonymous> (file:///home/runner/setup-pnpm/node_modules/.bin/global/5/.pnpm/[email protected]_@[email protected]/node_modules/netlify-cli/dist/commands/deploy/index.js:105:5)
 ›       at async BaseCommand.parseAsync (/home/runner/setup-pnpm/node_modules/.bin/global/5/.pnpm/[email protected]/node_modules/commander/lib/command.js:935:5)
 ›       at async file:///home/runner/setup-pnpm/node_modules/.bin/global/5/.pnpm/[email protected]_@[email protected]/node_modules/netlify-cli/bin/run.js:27:3

nekomeowww added a commit to nolebase/integrations that referenced this issue Oct 9, 2024
oliverschuerch pushed a commit to swisspost/design-system that referenced this issue Oct 9, 2024
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
oliverschuerch pushed a commit to swisspost/design-system that referenced this issue Oct 9, 2024
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
oliverschuerch pushed a commit to swisspost/design-system that referenced this issue Oct 9, 2024
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
@zanhk
Copy link

zanhk commented Oct 13, 2024

Is there any workaround?

@peschee
Copy link

peschee commented Oct 13, 2024

Is there any workaround?

Yes, just pin the cli to the latest working version for now…

@zanhk
Copy link

zanhk commented Oct 13, 2024

Ok thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

No branches or pull requests

5 participants