Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should archive files be actually compressed? #678

Open
jeromesimeon opened this issue Jun 20, 2021 · 2 comments
Open

Should archive files be actually compressed? #678

jeromesimeon opened this issue Jun 20, 2021 · 2 comments

Comments

@jeromesimeon
Copy link
Member

jeromesimeon commented Jun 20, 2021

Discussion 馃棧

I'm unclear that cicero archive used to create .cta files actually compresses them in the corresponding zip. Should the archive use compression?

Example with cicero archive:

zsh-5.8$ cicero archive 
8:13:38 AM - INFO: Using current directory as template folder
8:13:40 AM - INFO: Creating archive: acceptance-of-delivery@0.15.0.cta
zsh-5.8$ ls -la acceptance-of-delivery@0.15.0.cta 
-rw-r--r--  1 jeromesimeon  staff  36209 Jun 20 08:13 acceptance-of-delivery@0.15.0.cta

Example with zip -r:

zsh-5.8$ zip -r test.zip .
  adding: request.json (deflated 21%)
  adding: state.json (stored 0%)
  adding: test/ (stored 0%)
  adding: test/logic_default.feature (deflated 46%)
  adding: test/logic.feature (deflated 75%)
  adding: .cucumber.js (stored 0%)
  adding: logic/ (stored 0%)
  adding: logic/logic.ergo (deflated 51%)
  adding: README.md (deflated 20%)
  adding: package.json (deflated 58%)
  adding: logo.png (stored 0%)
  adding: model/ (stored 0%)
  adding: model/@models.accordproject.org.accordproject.runtime.cto (deflated 51%)
  adding: model/model.cto (deflated 62%)
  adding: model/@models.accordproject.org.organization.cto (deflated 49%)
  adding: model/@models.accordproject.org.geo.cto (deflated 67%)
  adding: model/@models.accordproject.org.accordproject.contract.cto (deflated 47%)
  adding: model/@models.accordproject.org.address.cto (deflated 47%)
  adding: text/ (stored 0%)
  adding: text/sample.md (deflated 51%)
  adding: text/grammar.tem.md (deflated 54%)
zsh-5.8$ ls -la test.zip
-rw-r--r--  1 jeromesimeon  staff  17131 Jun 20 08:13 test.zip
@jeromesimeon
Copy link
Member Author

jeromesimeon commented Aug 24, 2021

@mttrbrts
Copy link
Member

I had always assumed that this was what happens already!

Would this be a breaking change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants