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

chore: allow test-only imports in *test and /tests/** packages #3229

Merged
merged 2 commits into from
Jul 25, 2024

Conversation

ARR4N
Copy link
Contributor

@ARR4N ARR4N commented Jul 24, 2024

Why this should be merged

The requirement for //go:build test tags was proving too onerous.

How this works

The files excluded by the linter are expanded to those in the /tests/ directory and those in a package named *test. The files included by the linter are also expanded to include those that import the former sets.

How this was tested

Manually by removal of the build constraints from files in snowmantest and snowtest, demonstrating lint failure, and then clearing the failure by adding the $IN_TEST_PKG exclusion.

@StephenButtolph StephenButtolph added this pull request to the merge queue Jul 25, 2024
Merged via the queue into master with commit 7fdb6b6 Jul 25, 2024
20 checks passed
@StephenButtolph StephenButtolph deleted the arr4n/loosen-testing-build-constraint branch July 25, 2024 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants