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

[Bug]: CI Publish to crates.io is unreliable #3272

Closed
3 of 4 tasks
dessalines opened this issue Jun 22, 2023 · 6 comments
Closed
3 of 4 tasks

[Bug]: CI Publish to crates.io is unreliable #3272

dessalines opened this issue Jun 22, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@dessalines
Copy link
Member

Requirements

  • Is this a bug report? For questions or discussions use https://lemmy.ml/c/lemmy_support
  • Did you check to see if this issue already exists?
  • Is this only a single bug? Do not put multiple bugs in one issue.
  • Is this a UI / front end issue? Use the lemmy-ui repo.

Summary

Check this CI build: https://woodpecker.join-lemmy.org/repos/129/pipeline/263/16

Should be a way to make that more reliable.

Steps to Reproduce

See above

Technical Details

None

Version

main

Lemmy Instance URL

CI

@dessalines dessalines added the bug Something isn't working label Jun 22, 2023
@Nutomic
Copy link
Member

Nutomic commented Jun 27, 2023

There have been suggestions to change the from scratch installation to use git clone instead of cargo install. Then we could get rid of the cargo publish step entirely.

LemmyNet/lemmy-docs#213

@Nutomic
Copy link
Member

Nutomic commented Jul 11, 2023

Now crates.io publish is failing with 413 Request Entity Too Large:

Packaged 1391 files, 250.7MiB (111.8MiB compressed)
Uploading lemmy_server v0.18.2 (/woodpecker/src/github.com/LemmyNet/lemmy)
error: failed to publish to registry at https://crates.io

I wonder what files are getting included to reach that size.

https://woodpecker.join-lemmy.org/repos/129/pipeline/1072/16

@k4r4b3y
Copy link

k4r4b3y commented Jul 15, 2023

I would like to follow the from scratch installation guide, and get lemmy working without docker. Can the crates.io version of lemmy_server be updated to the latest version soon?

@Nutomic
Copy link
Member

Nutomic commented Jul 17, 2023

@k4r4b3y You can install by cloning the git repo. crates.io is causing too many problems, so it would likely be better to update the docs in that way too.

@k4r4b3y
Copy link

k4r4b3y commented Jul 17, 2023

@Nutomic understood. Do you have some useful guides for installing a rust program from its source? How would I go around doing that? I will check the web, however, if there are lemmy-specific "kinks" to that process, please let me know.

Edit: this guide seems like it installs lemmy from its source. Can you quickly skim through it and let me know if there are blatant errors? https://i12bretro.github.io/tutorials/0675.html

@Nutomic
Copy link
Member

Nutomic commented Jul 17, 2023

Just do git clone --recursive and then cargo build.

Nutomic added a commit that referenced this issue Jul 19, 2023
This is not needed anymore as from scratch installation now uses
`git clone` instead of `cargo install`.

https://github.com/LemmyNet/lemmy-docs/pull/241/files
Nutomic added a commit that referenced this issue Jul 21, 2023
This is not needed anymore as from scratch installation now uses
`git clone` instead of `cargo install`.

https://github.com/LemmyNet/lemmy-docs/pull/241/files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants