Skip to content

Cannot deploy symlinks #22

Closed
Closed
@hiroshi

Description

@hiroshi

When I had symlinks in my deploy target directory I got the error.

$ firebase deploy
Preparing to deploy Public Directory...

stream.js:94
      throw er; // Unhandled stream error in pipe.
            ^
Error: Didn't get expected byte count
expect: 33
actual: 4975
    at decorate (/usr/local/lib/node_modules/firebase-tools/node_modules/fstream-ignore/node_modules/fstream/lib/abstract.js:67:36)
    at FileReader.Abstract.error (/usr/local/lib/node_modules/firebase-tools/node_modules/fstream-ignore/node_modules/fstream/lib/abstract.js:61:12)
    at ReadStream.<anonymous> (/usr/local/lib/node_modules/firebase-tools/node_modules/fstream-ignore/node_modules/fstream/lib/file-reader.js:66:10)
    at ReadStream.EventEmitter.emit (events.js:117:20)
    at _stream_readable.js:920:16
    at process._tickCallback (node.js:415:13)

I replaced those symlinks with copied regular files, then the error resolved.
It is great that firebase deploy can handle symlinks kindly.

The version of firebase-tools are installed via npm.

$ firebase
Firebase Command Line Tools
Version 1.0.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions