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

[Merged by Bors] - Remove lazy_static in favor of once_cell #3466

Closed

Conversation

matheus-consoli
Copy link
Contributor

fluvio-package-index was the only package using lazy_static - this small change favors once_cell instead.

This way we have one less dependency and it will be easier to update once std::sync::LazyLock is stabilized.

Copy link
Contributor

@sehz sehz left a comment

Choose a reason for hiding this comment

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

LGTM

@sehz
Copy link
Contributor

sehz commented Aug 14, 2023

bors r+

bors bot pushed a commit that referenced this pull request Aug 14, 2023
`fluvio-package-index` was the only package using `lazy_static` - this small change favors `once_cell` instead.

This way we have one less dependency and it will be easier to update once [`std::sync::LazyLock`](https://doc.rust-lang.org/std/sync/struct.LazyLock.html) is stabilized.
@bors
Copy link

bors bot commented Aug 14, 2023

Build failed:

@matheus-consoli
Copy link
Contributor Author

Build failed on the crate version check - it detected a code change without a version change. Is it ok to ignore it and merge (since nothing meaningful changed), or is it preferable to bump a minor?

@sehz
Copy link
Contributor

sehz commented Aug 14, 2023

All merges need to go thru bors (there is no exception). So in order to make bors happy, need to bump up minor version. Should create issue to skipped version check if changes are only related to tests

@morenol
Copy link
Contributor

morenol commented Aug 14, 2023

bors r+

bors bot pushed a commit that referenced this pull request Aug 14, 2023
`fluvio-package-index` was the only package using `lazy_static` - this small change favors `once_cell` instead.

This way we have one less dependency and it will be easier to update once [`std::sync::LazyLock`](https://doc.rust-lang.org/std/sync/struct.LazyLock.html) is stabilized.
@bors
Copy link

bors bot commented Aug 14, 2023

Pull request successfully merged into master.

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot changed the title Remove lazy_static in favor of once_cell [Merged by Bors] - Remove lazy_static in favor of once_cell Aug 14, 2023
@bors bors bot closed this Aug 14, 2023
@matheus-consoli matheus-consoli deleted the remove-lazy-static branch August 15, 2023 03:06
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.

3 participants