cli: Manual deployment hangs with a deployment folder that starts with a dot
Describe the bug
Executing ‘netlify deploy -d .build’ does not find any files, and hangs during the upload.
Here is the output of a tried deployment:
Deploying to draft URL...
✔ Finished hashing 0 files
✔ CDN requesting 0 files
✔ Finished uploading 0 assets
⧇ Waiting for deploy to go live...
You see, no files were found (even so there are files).
To Reproduce
Steps to reproduce the behavior:
- Setup a Netlify project
- on Linux, create a hidden directory (a directory that starts with a dot, i.e. “.deploy”)
- Put some HTML files into the hidden directory
- Start the deployment of the hidden folder
Configuration
- If possible, please copy/paste below your
netlify.toml.
I’m using the default netlify.toml (I didn’t change anything).
- Please enter the following command in a terminal and copy/paste its output:
System:
OS: Linux 5.8 Arch Linux
CPU: (8) x64 Intel(R) Core(TM) i7-4710MQ CPU @ 2.50GHz
Memory: 1.96 GB / 15.52 GB
Container: Yes
Shell: 5.0.18 - /bin/bash
Binaries:
Node: 14.10.1 - /usr/bin/node
npm: 6.14.8 - /usr/bin/npm
Watchman: 4.9.0 - /usr/bin/watchman
npmGlobalPackages:
netlify-cli: 2.61.2
Expected behavior
The CLI finds files in the deployment folder, and the upload succeeds (at least, if there is a problem, there should be an error message)
CLI Output
See above
Additional context
After changing the name of the deployment folder from “.build” to “build”, everything works as expected
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 20 (16 by maintainers)
Alright, thanks for the effort, @erezrokah.