Skip to content

Revert go-ucfg dependency to v0.8.8#3331

Merged
mrodm merged 2 commits intoelastic:mainfrom
mrodm:revert_upgade_go-ucfg-0.9.0
Mar 3, 2026
Merged

Revert go-ucfg dependency to v0.8.8#3331
mrodm merged 2 commits intoelastic:mainfrom
mrodm:revert_upgade_go-ucfg-0.9.0

Conversation

@mrodm
Copy link
Contributor

@mrodm mrodm commented Mar 3, 2026

This PR reverts the go-ucfg upgrade to v0.9.0 #3294

It keeps the version v0.8.0

The issue found is related to variables containing dots like data_stream.dataset that cannot be retrieve from the config.
Given this configuration file for system tests

vars:
  data_stream.data_set: custom.foo

This call would return key not found (if err was validated):

v, _ := cfgVars.GetValue("data_stream.dataset")
if dataset, ok := v.(string); ok && dataset != "" {
dataStreamDataset = dataset
}

Author's Checklist

@mrodm mrodm self-assigned this Mar 3, 2026
@elasticmachine
Copy link
Collaborator

elasticmachine commented Mar 3, 2026

💛 Build succeeded, but was flaky

Failed CI Steps

History

cc @mrodm

@mrodm mrodm changed the title Add new tests for custom datasets Revert go-ucfg dependency to v0.8.8 Mar 3, 2026
@mrodm mrodm marked this pull request as ready for review March 3, 2026 11:39
@mrodm mrodm requested a review from a team as a code owner March 3, 2026 11:39
Comment on lines +53 to +54
v, err := cfg.Vars.GetValue("data_stream.dataset")
require.NoError(t, err)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was not found in v0.9.0

Error: Received unexpected error: key not found
Test: TestNewConfig/vars_with_data_stream.dataset_are_detected 

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