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

trigger: Tweak wording of AOT compilation code #2682

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

lann
Copy link
Collaborator

@lann lann commented Jul 25, 2024

Several times I've looked at this match self.compilation_status block and been confused by the wording of the variants.

Signed-off-by: Lann Martin <lann.martin@fermyon.com>
Comment on lines -116 to +123
format!(
"failed to read component source from disk at path {}",
quoted_path(&path)
)
})?;
let component = spin_componentize::componentize_if_necessary(&bytes)?;
spin_core::Component::new(engine, component.as_ref())
.with_context(|| format!("loading module {}", quoted_path(&path)))
format!(
"failed to read component source from disk at path {}",
quoted_path(&path)
)
})?;
let component = spin_componentize::componentize_if_necessary(&bytes)?;
spin_core::Component::new(engine, component.as_ref())
.with_context(|| format!("loading module {}", quoted_path(&path)))
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Just rustfmt having a New Opinion I think...

AllAotComponents,
/// No components are ahead of time (AOT) compiled.
NoneAot,
Enabled,
Copy link
Contributor

Choose a reason for hiding this comment

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

Enabled suggests more "it's allowed" than "they are," but I imagine anyone who interacts with it will already understand this stuff deeply (certainly deeplier than me!) and it is definitely better than before!

@lann lann merged commit bac388d into fermyon:main Jul 26, 2024
17 checks passed
@lann lann deleted the tweak-aot-wording branch July 26, 2024 17:23
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