Closed webmaster128 closed 10 months ago
Actually I think this is the wrong direction. sccache is only useful when multiple Rust projects are compiled in one call of rust-optimizer. I.e. for CONTRACTDIR in "$@"; do
is more than one argument. This usecase is very much irrelevant these days. It was built for the cosmwasm-examples repo before there was workspace-optimizer. See https://github.com/deus-labs/cw-contracts/blob/main/README.md?plain=1#L51-L64.
Instead we should error if "$@" contains more than one entry and require
Part of #135 with the long term goal to only require one image that dynamically switches between the single contract and workspace case