Skip to content

"netlify deploy --dir" is not uploading netlify.toml #6190

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

Closed
hpop opened this issue Nov 18, 2023 · 5 comments
Closed

"netlify deploy --dir" is not uploading netlify.toml #6190

hpop opened this issue Nov 18, 2023 · 5 comments
Labels
type: bug code to address defects in shipped code

Comments

@hpop
Copy link

hpop commented Nov 18, 2023

Describe the bug

In the latest version, the netlify.toml file is not uploaded when executing netlify deploy. Even if I explicitly modify this file, it is not recognized as a change.

This only happens when I use the command in this way: NETLIFY_SITE_ID=*** netlify deploy --dir path

Deploying to main site URL...
✔ Finished hashing 
✔ CDN requesting 0 files
✔ Finished uploading 0 assets
✔ Deploy is live!

Steps to reproduce

  1. Create a directory containing an index.html and a netlify.toml file.
  2. Go to the parent directory
  3. Run NETLIFY_SITE_ID=*** netlify deploy --dir path to deploy the directory.

Configuration

No response

Environment

netlify-cli/17.5.1 darwin-arm64 node-v20.9.0

System:
OS: macOS 14.0
CPU: (10) arm64 Apple M1 Max
Memory: 2.11 GB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.9.0 - ~/.n/bin/node
npm: 10.1.0 - ~/.n/bin/npm
pnpm: 8.10.5 - /opt/homebrew/bin/pnpm

@hpop hpop added the type: bug code to address defects in shipped code label Nov 18, 2023
@hpop
Copy link
Author

hpop commented Nov 18, 2023

This issue was introduced in v17.3, but it works in v17.2. Therefore, my workaround for now is to downgrade to 17.2.

@mkukawski
Copy link

Same here, its a regression

@mkukawski
Copy link

It is also not working for me on 17.0.0 from 21 days ago... I start to wonder if this is a receiving backend issue...
Anyone seeing the same?

@teropa
Copy link

teropa commented Dec 11, 2024

Seeing a similar issue with the _headers file being ignored when using netlify deploy --dir.
Downgrading to netlify-cli v17.2 fixed the issue.

@serhalp
Copy link
Collaborator

serhalp commented Apr 23, 2025

As this issue is very stale, I'm going to close it out. Please feel free to reply or open a new issue if you're still experiencing this.

If you need additional support, please check out our support page: https://www.netlify.com/support/. Thank you!

@serhalp serhalp closed this as not planned Won't fix, can't repro, duplicate, stale Apr 23, 2025
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

4 participants