netlify / cli

Netlify Command Line Interface
http://cli.netlify.com
MIT License
1.57k stars 347 forks source link

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

Open hpop opened 9 months ago

hpop commented 9 months ago

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 commented 9 months ago

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 commented 9 months ago

Same here, its a regression

mkukawski commented 9 months ago

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?