aio-cli icon indicating copy to clipboard operation
aio-cli copied to clipboard

app dist needs to be cleaned after a workspace switch `aio app use`

Open purplecabbage opened this issue 1 year ago • 1 comments

Expected Behaviour

Running aio app use to switch to another workspace and then aio app run | aio app build | aio app deploy should build and deploy in the new target.

Actual Behaviour

ℹ No actions built for 'dx/excshell/1'
ℹ No frontend or a build already exists, skipping frontend build for 'dx/excshell/1'
ℹ No actions deployed for 'dx/excshell/1'
✔ Deploying web assets for 'dx/excshell/1'

The web assets are actually deployed, but even they are probably incorrect because they were not rebuilt for the new workspace.

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Environment Info

  System:
    OS: macOS 14.6.1
    CPU: (10) arm64 Apple M1 Max
    Memory: 894.55 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.20.4 - ~/.nvm/versions/node/v18.20.4/bin/node
    Yarn: 1.22.19 - ~/.bun/bin/yarn
    npm: 10.7.0 - ~/.nvm/versions/node/v18.20.4/bin/npm
  Virtualization:
    Docker: 20.10.17 - /usr/local/bin/docker
  npmGlobalPackages:
    @adobe/aio-cli: 10.3.1

Sample Code that illustrates the problem

Logs taken while reproducing problem

purplecabbage avatar Nov 14 '24 20:11 purplecabbage