This PR aims at cleaning up our dependencies, and in particular our dependencies in plutus-apps. I will slowly remove things from the package.yaml file and check that everything still compiles fine. I will keep all the process in the Git history of this PR in case someone wants to have a better look at the CI errors and such. I will also edit this description to explain why I kept some packages.
In package.yaml, I could only remove freer-simple, freer-extras and plutus-pab. The rest is used:
cardano-node-emulator: I am not even trying, we are heavily depending on it.
plutus-contract: we are apparently depending on it:
Building library for cooked-validators-2.0.0..
[13 of 37] Compiling Cooked.MockChain.GenerateTx ( src/Cooked/MockChain/GenerateTx.hs, [...] ) [Wallet.API changed]
src/Cooked/MockChain/GenerateTx.hs:40:1: error:
Could not load module ‘Wallet.API’
It is a member of the hidden package ‘plutus-contract-1.2.0.0’.
|
40 | import qualified Wallet.API as Pl
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
plutus-ledger: we are apparently depending on it:
Building library for cooked-validators-2.0.0..
[ 1 of 37] Compiling Cooked.Currencies ( src/Cooked/Currencies.hs, [...] ) [Ledger.Typed.Scripts changed]
src/Cooked/Currencies.hs:44:1: error:
Could not load module ‘Ledger.Typed.Scripts’
It is a member of the hidden package ‘plutus-ledger-1.2.0.0’.
|
44 | import qualified Ledger.Typed.Scripts as Scripts
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
plutus-scripts-utils: we are apparently depending on it:
Building library for cooked-validators-2.0.0..
[ 1 of 37] Compiling Cooked.Currencies ( src/Cooked/Currencies.hs, [...] ) [Plutus.Script.Utils.V1.Scripts changed]
src/Cooked/Currencies.hs:45:1: error:
Could not load module ‘Plutus.Script.Utils.V1.Scripts’
It is a member of the hidden package ‘plutus-script-utils-1.2.0.0’.
|
45 | import qualified Plutus.Script.Utils.V1.Scripts as Validation
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
In cabal.project, I could remove doc, marconi-sidechain, plutus-contract-certification, plutus-e2e-tests, plutus-example, plutus-pab-executables and plutus-use-cases, all already known to be unused. Additionally, I could now remove plutus-pab. freer-extras is necessary as a dependency of cardano-node-emulator.
This PR is meant to be squashed.
This PR aims at cleaning up our dependencies, and in particular our dependencies in
plutus-apps
. I will slowly remove things from thepackage.yaml
file and check that everything still compiles fine. I will keep all the process in the Git history of this PR in case someone wants to have a better look at the CI errors and such. I will also edit this description to explain why I kept some packages.My work is guided by this Google spreadsheet.
In
package.yaml
, I could only removefreer-simple
,freer-extras
andplutus-pab
. The rest is used:cardano-node-emulator
: I am not even trying, we are heavily depending on it.plutus-contract
: we are apparently depending on it:plutus-ledger
: we are apparently depending on it:plutus-scripts-utils
: we are apparently depending on it:In
cabal.project
, I could removedoc
,marconi-sidechain
,plutus-contract-certification
,plutus-e2e-tests
,plutus-example
,plutus-pab-executables
andplutus-use-cases
, all already known to be unused. Additionally, I could now removeplutus-pab
.freer-extras
is necessary as a dependency ofcardano-node-emulator
.