Skip to content
New issue

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

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Lightweight Shell #245

Merged
merged 3 commits into from
Oct 30, 2023
Merged

Lightweight Shell #245

merged 3 commits into from
Oct 30, 2023

Conversation

blitz
Copy link
Member

@blitz blitz commented Oct 29, 2023

@phip1611 mentioned that our shell environment is pretty heavy and can compile for quite some time when entered. This PR drops everything from the shell environment that is not immediately useful for compile the Rust code or style checking.

While I was here, I also applied cargo machete suggestions.

Copy link
Member

@nikstur nikstur left a comment

Choose a reason for hiding this comment

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

Otherwise this looks good

flake.nix Outdated
@@ -259,8 +243,6 @@
config.packages.stub
config.packages.tool
];

TEST_SYSTEMD = pkgs.systemd;
Copy link
Member

Choose a reason for hiding this comment

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

We should keep this around, otherwise you can't run the lzbt tests from the shell anymore.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point. cargo test in lzbt passes now and I've also left openssl and sbctl.

Copy link
Member

@RaitoBezarius RaitoBezarius left a comment

Choose a reason for hiding this comment

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

LGTM modulo what @nikstur said.
Some of the tools are useful for us, developers, e.g. OpenSSL, sbctl overidden, etc. But it's fine I guess.

@blitz blitz requested a review from nikstur October 29, 2023 23:57
@blitz blitz force-pushed the lightweight-shell branch from ef512d6 to 3b12925 Compare October 30, 2023 00:00
blitz added 3 commits October 30, 2023 10:20
We are getting this warning:

warning: some crates are on edition 2021 which defaults to `resolver = "2"`, but virtual workspaces default to `resolver = "1"`
note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest
note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest

Silence by opting into the new behavior.
@blitz blitz force-pushed the lightweight-shell branch from 3b12925 to 3cb657f Compare October 30, 2023 09:25
@blitz
Copy link
Member Author

blitz commented Oct 30, 2023

@nikstur Can you check again?

@nikstur nikstur merged commit 9c8d7c5 into master Oct 30, 2023
@nikstur nikstur deleted the lightweight-shell branch October 30, 2023 09:31
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants