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

fix: improve hook-env #3466

Merged
merged 2 commits into from
Dec 11, 2024
Merged

fix: improve hook-env #3466

merged 2 commits into from
Dec 11, 2024

Conversation

jdx
Copy link
Owner

@jdx jdx commented Dec 11, 2024

  • check config filetime modification in millis so scripts work better
  • only warn if files are untrusted
  • added a --no-hook-env flag for activate for debugging

@@ -114,7 +114,7 @@ fn have_mise_env_vars_been_modified(watches: &HookEnvWatches) -> bool {

#[derive(Debug, Default, Serialize, Deserialize)]
pub struct HookEnvWatches {
latest_update: u64,
latest_update: u128,
Copy link
Owner Author

Choose a reason for hiding this comment

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

my understanding is this shouldn't work because we serialize to messagepack which doesn't have bigint... but it makes the test pass so ¯\_(ツ)_/¯

@jdx jdx force-pushed the activate branch 2 times, most recently from 7ad6a2b to d938aea Compare December 11, 2024 14:01
@jdx jdx enabled auto-merge (squash) December 11, 2024 14:01
* check config filetime modification in millis so scripts work better
* only warn if files are untrusted
@jdx jdx merged commit 15fa19e into main Dec 11, 2024
19 checks passed
@jdx jdx deleted the activate branch December 11, 2024 14:19
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.

1 participant