Skip to content

Some general fixes#132

Merged
directionless merged 1 commit intoosquery:masterfrom
sbrito85:Fix-spec-tests,-bump-go-version
Mar 6, 2026
Merged

Some general fixes#132
directionless merged 1 commit intoosquery:masterfrom
sbrito85:Fix-spec-tests,-bump-go-version

Conversation

@sbrito85
Copy link
Contributor

@sbrito85 sbrito85 commented Mar 6, 2026

go.mod:

  • Bump golang version to 1.2.6. Behavior of loops changed in 1.22. We could add tt := tt above run in spec_test instead of bumping golang version. https://go.dev/blog/loopvar-preview

column.go:

spec_test.go:

  • Explicitly set darwin in each test. Some test environments may have a GOOS defined and may cause flakey tests. We are already defaulting to darwin below, so just explicitly set in the test.

go.mod:
- Bump golang version to 1.2.6. Behavior of loops changed in 1.22. We could add tt := tt above run in spec_test instead of bumping golang version. https://go.dev/blog/loopvar-preview

column.go:
- Explicitly set types on columns https://staticcheck.dev/docs/checks#SA9004

spec_test.go:
- Explicitly set darwin in each test. Some test environments may have a GOOS defined and may cause flakey tests. We are already defaulting to darwin below, so just explicitly set in the test.
@directionless directionless merged commit a88c076 into osquery:master Mar 6, 2026
3 checks passed
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