polywrap / wrap-cli

Used to create, build, and integrate wraps.
https://polywrap.io
MIT License
170 stars 52 forks source link

IPFS Deployer possibly duplicates subdirectory paths when deploying #1846

Closed pileks closed 11 months ago

pileks commented 12 months ago

When deploying using the IPFS deployer, dirs within dirs possibly has an issue wherein subpaths are "multiplied":

Structure of build dir:

├── docs
│   ├── pages
│   │   └── readme.md
│   └── polywrap.docs.json
├── wrap.info
└── wrap.wasm

Structure of deployment to IPFS: https://ipfs.io/ipfs/QmaG1butqzL7vXqs5hZCkba4LAiGStrh3vx6eKz8sdFfDo/

├── docs
|   |
|   └──docs
│      ├── pages
│      │   └── readme.md
│      └── polywrap.docs.json
├── wrap.info
└── wrap.wasm

Notice the difference in the docs dir - the path to the wrap readme is different: docs/pages/readme.md - local build dir vs docs/docs/pages/readme.md - what's on IPFS

Further investigation warranted.

dOrgJelli commented 11 months ago

This should be fixed within polywrap CLI version 0.11.1