Skip to content

Conversation

@Yoshiboi18303
Copy link

Change lua/astrocommunity/editing-support/rustowl/init.lua build command to use cargo binstall or cargo install. Compared to running cd rustowl, which doesn't work at all.

📑 Description

This pull request should fix an issue with the rustowl plugin in astrocommunity.editing-support.rustowl spec. Originally it would try to run cd rustowl && cargo install --path . --locked in the build part, which fails at the first command with (the error depends on your shell):

zsh:cd no such file or directory: rustowl

This uses cargo directly by either running cargo binstall or cargo install if the cargo-binstall crate isn't installed.

📖 Additional Information

…rectory, use cargo directly instead of running a premature cd.

Change lua/astrocommunity/editing-support/rustowl/init.lua build command to use cargo binstall or cargo install.
Compared to running cd rustowl, which doesn't work at all.
@github-actions
Copy link

github-actions bot commented Dec 8, 2025

Review Checklist

Does this PR follow the [Contribution Guidelines](development guidelines)? Following is a partial checklist:

Proper conventional commit scoping:

  • If you are adding a new plugin, the scope would be the name of the category it is being added into. ex. feat(utility): added noice.nvim plugin

  • If you are modifying a pre-existing plugin or pack, the scope would be the name of the plugin folder. ex. fix(noice-nvim): fix LSP handler error

  • Pull request title has the appropriate conventional commit type and scope where the scope is the name of the pre-existing directory in the project as described above

  • README is properly formatted and uses fenced in links with <url> unless they are inside a [title](url)

  • Entry returns a single plugin spec with the new plugin as the only top level spec (not applicable for recipes or packs).

  • Proper usage of opts table rather than setting things up with the config function.

  • Proper usage of specs table for all specs that are not dependencies of a given plugin (not applicable for recipes or packs).

@Yoshiboi18303
Copy link
Author

This is one of my first pull requests to this repo, so... if anything is wrong, please let me know.

@Yoshiboi18303 Yoshiboi18303 changed the title fix(editing-support): Rustowl build failure fix(rustowl): Rustowl build failure Dec 8, 2025
@Yoshiboi18303
Copy link
Author

Fixed the title, it was incorrect. My bad guys!

Copy link
Member

@Uzaaft Uzaaft left a comment

Choose a reason for hiding this comment

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

Remove binstall, most rust users probably dont have it installed anyways. And installing pre-compiled binaries on the users machine smells.

@Yoshiboi18303
Copy link
Author

Gotcha, I'll get back with a change. Running cargo install directly may raise an issue with Lazy having a build timeout (as when I ran it with like 16 CPU cores, it timed out and the process was killed, so the build failed), so I may have to update the README to say as such.

@Yoshiboi18303
Copy link
Author

Attempting to find out how to increase the build timeout, stand by.

@Yoshiboi18303
Copy link
Author

Found it, just gotta review and make sure it's right.

Also update README to suggest something that is kind of important.
@Yoshiboi18303
Copy link
Author

Done.

@Yoshiboi18303 Yoshiboi18303 requested a review from Uzaaft December 8, 2025 15:28
@Yoshiboi18303
Copy link
Author

Yoshiboi18303 commented Dec 8, 2025

Forgot to use --locked, fixed that.

@Uzaaft
Copy link
Member

Uzaaft commented Dec 9, 2025

Would this work if the user doesnt have a nightly toolchain? Does cargo install respect the rust-toolchain file upstream?

@Yoshiboi18303
Copy link
Author

It should, I'll test it now.

@Yoshiboi18303
Copy link
Author

Yoshiboi18303 commented Dec 9, 2025

Yeah, it works off nightly. It's broken on nightly though, but that's probably their code not being fit for nightly.

@Yoshiboi18303
Copy link
Author

@Yoshiboi18303
Copy link
Author

Probably not a big deal though, most people use stable, including me.

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

Successfully merging this pull request may close these issues.

2 participants