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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New versions not on crates.io #117

Closed
saghm opened this issue Sep 9, 2017 · 12 comments
Closed

New versions not on crates.io #117

saghm opened this issue Sep 9, 2017 · 12 comments

Comments

@saghm
Copy link

saghm commented Sep 9, 2017

I just realized that several versions of this have come out without my noticing because I had been checking for updates on crates. Will any more current/future versions be released on crates.io, or is that no longer going to be supported?

@Keats
Copy link
Collaborator

Keats commented Sep 11, 2017

New versions are not going to be released on crates.io for a few reasons (from my article at https://vincent.is/releasing-gutenberg-0.1.0/):

  • package for binary crates don't use the Cargo.lock which means a dependency having breaking changes without respecting SemVer will cause the crate to compile but fail at runtime in some cases
  • I moved to using a Cargo workspace with many small crates to improve iteration speed
  • with Sass, building Gutenberg has become more involved and it is easier to let user install the already built binary

@Keats Keats closed this as completed Sep 11, 2017
@saghm
Copy link
Author

saghm commented Sep 11, 2017

Quick follow-up, if that's all right to do on the same issue: are there any plans for introducing a way to update to newer versions without having to manually download them (e.g. with the self_update crate)?

@Keats
Copy link
Collaborator

Keats commented Sep 11, 2017

That crate is interesting, I didn't see it before!
I think I would rather leverage package managers for update though

@ctz
Copy link

ctz commented Oct 7, 2017

Maybe yank the old versions? They currently suggest cargo install gutenberg as an installation method.

@Keats
Copy link
Collaborator

Keats commented Oct 7, 2017

@ctz good idea! Just yanked all of them

@kohensu
Copy link

kohensu commented Jul 4, 2018

FYI: rust-lang/cargo#5654 (Publish lockfile for binary crates)

@Keats
Copy link
Collaborator

Keats commented Jul 4, 2018

I've seen that but now Gutenberg is split in many subcrates to improve compile time and it doesn't make sense to publish those so it will stay ouf of crates.io I'm afraid

@michaelmior
Copy link

Found this here which was a reasonable explanation why Zola isn't available to install via Cargo as I expected. It would be helpful if this was briefly noted in the README since it's fairly unusual for a Rust project.

@michaelmior
Copy link

On second thought, it looks like the issue with not respecting lock files is resolved now, so perhaps this isn't an issue anymore?

@Keats
Copy link
Collaborator

Keats commented Jun 28, 2019

There's also the fact that it is now split in multiple crates to make compilation time manageable and I have no interest in publishing all of those on crates.io.

since it's fairly unusual for a Rust project.

I view crates.io mostly as a repository of libraries, I use my OS package manager for binaries.

@michaelmior
Copy link

I'm just speaking from my personal experience as a consumer of Rust binaries. I personally like using cargo to install them. And publishing is easier for me since I don't need to make packages for different OSes. But I understand others prefer different options. Anyway, thanks for the response and thanks for Zola!

@polyzen
Copy link

polyzen commented Jun 28, 2019

rust-lang/cargo#7026

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

No branches or pull requests

6 participants