Skip to content

Manual deployment hangs with a deployment folder that starts with a dot #1227

Closed
@d4h0

Description

@d4h0

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:

  1. Setup a Netlify project
  2. on Linux, create a hidden directory (a directory that starts with a dot, i.e. ".deploy")
  3. Put some HTML files into the hidden directory
  4. 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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions