fix(vrl): restore stdlib functions in CLI and playground#25310
Open
fix(vrl): restore stdlib functions in CLI and playground#25310
Conversation
4e77757 to
7d73bfc
Compare
7d73bfc to
3bff37b
Compare
3bff37b to
635b285
Compare
635b285 to
0ca17c5
Compare
thomasqueirozb
approved these changes
Apr 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
default = ["vrl/stdlib"]in both standalone crates.--no-default-featuresas the restricted build path for library consumers that intentionally avoid the full stdlib.Root Cause
After the VRL feature split, the standalone VRL crates inherited the workspace
vrldependency withstdlib-baseonly. That unintentionally changed the default behavior for the standalone VRL CLI and web playground: functions from the full stdlib, such asget_env_var, were no longer available unless the build explicitly enabledvrl/stdlib.Production Vector already enables
vrl/stdlibthrough the rootbasefeature. This change aligns the standalone CLI and web playground with that default production behavior, while consumers embedding Vector crates withdefault-features = falsestill do not enable the full stdlib unless they opt in.Fixes #25267.
Validation
get_env_varundefined-function error onv0.55.0before the fix.cargo run -q -p vector-vrl-cli -- -q '.xxx = get_env_var("NODE_NAME") ?? "no_host"'cargo run -q -p vector-vrl-cli --no-default-features -- -q '.xxx = get_env_var("NODE_NAME") ?? "no_host"'still fails withE105cargo check -q -p vector-vrl-clicargo check -q -p vector-vrl-web-playgroundcargo check -q -p vector-vrl-web-playground --no-default-features./scripts/check_changelog_fragments.shmake check-clippy