One job does:
- persist_to_workspace:
root: .
paths:
- '*'
With “Persisting to workspace” output:
Creating workspace archive…
Uploading workspace archive…
Total size uploaded: 62 MiB
Workspace archive uploaded successfully.
A later job does:
- attach_workspace: { at: . }
- run:
name: "Foo"
command: "something_to_generate_a_dist_folder"
- persist_to_workspace:
root: .
paths:
- dist
With “Persisting to workspace” output:
Creating workspace archive…
Uploading workspace archive…
Total size uploaded: 2.6 MiB
Workspace archive uploaded successfully.
A later job does:
- attach_workspace: { at: . }
with “Attaching workspace” output
Downloading workspace layers
workflows/workspaces/6963932b-…/0/b9b35173-…/0/108.tar.gz - 65 MB
Total size downloaded: 62 MiB
Applying workspace layers
b9b35173-ae18-4ac3-986b-e47bfbeed5ea
935315fa-ab7c-4b2c-aa21-842b4ac3ecdb - persisted no files
It tries to access “dist”, but there’s no such folder. Why?