Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Remove all preserve plugins from truffle bundle #5135

Merged
merged 3 commits into from
Jun 1, 2022
Merged

Conversation

cds-amal
Copy link
Member

@cds-amal cds-amal commented May 23, 2022

This PR removes the preserve plugins from the truffle bundle, which will 1) improve installation time [#5116] and 2) silence a bunch of noisy dependencies during installation. Unfortunately, the preserve-to-* integration tests are no more; however, there is now an issue on the preserves monorepo for followup work.

Users who currently use the preserve feature, will have to

  1. Include the following packages in their truffle project:
    • @truffle/error
    • @truffle/preserve-fs
    • @truffle/preserve-to-ipfs
    • @truffle/preserve-to-filecoin
  2. Add "@truffle/preserve-fs" to the plugins array in truffle-config.js

When this is released, the accompanying preserve-example-box PR can be merged.

Testing install time

  • bootstrap this branch
  • cd packages/truffle; yarn pack
  • npm -g uninstall truffle
  • time npm -g install truffle-v5.5.16.tgz
  • add your results to the table below 🙏
OS real time (s) tester
Ubuntu 20.04 82.54 @cds-amal

@cds-amal cds-amal marked this pull request as draft May 23, 2022 18:52
@cds-amal cds-amal force-pushed the ipfs-burns branch 3 times, most recently from d952e60 to ddb7afb Compare May 26, 2022 22:27
@cds-amal cds-amal marked this pull request as ready for review May 26, 2022 22:37
Copy link
Contributor

@lsqproduction lsqproduction left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Copy link
Contributor

@eggplantzzz eggplantzzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good except for the one version decrease

@gnidan
Copy link
Contributor

gnidan commented May 27, 2022

any way to get the @truffle/error thing sorted out first? seems like it's just a dependency missing in one or all of the preserve packages

@haltman-at
Copy link
Contributor

So, uh, this is a breaking change to Truffle, right...?

@gnidan
Copy link
Contributor

gnidan commented May 27, 2022

So, uh, this is a breaking change to Truffle, right...?

the assumption is that no one is using this feature, and so we can make the pragmatic decision to avoid the rigamarole of a Truffle major release, and just compensate with apologies and good instructions

@cds-amal
Copy link
Member Author

cds-amal commented May 31, 2022

any way to get the @truffle/error thing sorted out first? seems like it's just a dependency missing in one or all of the preserve packages

  • Gotta get this puppy merged.
  • Published

- remove preserve-to-* plugins
- remove preserve-fs plugin
- truffle: remove unused deps
- `help preserve` no longer asserts for defaultPlugins.
Copy link
Contributor

@eggplantzzz eggplantzzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Es gefällt mir.

@cds-amal cds-amal merged commit c54c15a into develop Jun 1, 2022
@cds-amal cds-amal deleted the ipfs-burns branch June 1, 2022 20:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants