Skip to content

chore: Refactor internal/version into root version folder#3145

Merged
dpaasman00 merged 4 commits intomainfrom
dakotapaasman/bpop-4553-refactor-components-importing-version-pkg
Feb 17, 2026
Merged

chore: Refactor internal/version into root version folder#3145
dpaasman00 merged 4 commits intomainfrom
dakotapaasman/bpop-4553-refactor-components-importing-version-pkg

Conversation

@dpaasman00
Copy link
Contributor

Proposed Change

Moves the internal/version package into a new package at the root of the repo. Updates the 3 components that previously used this package to use the new root level package.

This is necessary to make these components compatible with the OCB.

Checklist
  • Changes are tested
  • CI has passed

@dpaasman00 dpaasman00 requested review from a team as code owners February 17, 2026 15:59
Comment on lines +122 to +123
func createDefaultConfig() func() component.Config {
collectorVersion := version.Version()
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be able to just return a config now as opposed to returning a function

Comment on lines +111 to +112
func createDefaultConfig() func() component.Config {
collectorVersion := version.Version()
Copy link
Contributor

Choose a reason for hiding this comment

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

Ditto

Comment on lines +50 to +51
func createDefaultConfig() func() component.Config {
userAgent := fmt.Sprintf("%s/%s", defaultUserAgent, version.Version())
Copy link
Contributor

Choose a reason for hiding this comment

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

One more

@dpaasman00 dpaasman00 merged commit b47b38a into main Feb 17, 2026
19 checks passed
@dpaasman00 dpaasman00 deleted the dakotapaasman/bpop-4553-refactor-components-importing-version-pkg branch February 17, 2026 19:15
dpaasman00 added a commit that referenced this pull request Feb 17, 2026
* refactor internal/version into root version folder

* update component doc for ocb use case

* ci

* dont return cfg func
dpaasman00 added a commit that referenced this pull request Feb 17, 2026
* chore: Refactor `internal/version` into root `version` folder (#3145)

* refactor internal/version into root version folder

* update component doc for ocb use case

* ci

* dont return cfg func

* update manifests
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.

2 participants