Skip to content

Unable to package because node_modules #11

@nyurik

Description

@nyurik

The martin porject currently fails to publish to crates.io because the build.rs downloads the node_modules/** to a directory that is not part of the OUT_DIR as required by cargo. Changing .target(...) to use OUT_DIR only fixes the generated file location, but not the location of the node_modules. Adding things to exclude do not seem to help. Is there a way to do this?

cargo package -p martin --dry-run fails because

error: failed to verify package tarball
 450   │
 451   │ Caused by:
 452   │   Source directory was modified by build.rs during cargo publish. Build scripts should not modify anything outside of OUT_DIR.
 453   │   Added: .../martin/target/package/martin-0.15.0/martin-ui/dist
 454   │     .../martin/target/package/martin-0.15.0/martin-ui/dist/_
                      ....

P.S. cross-posted to stackoverflow

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions