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] Restore Lint on Windows #34656

Merged
merged 10 commits into from
Aug 14, 2024

Conversation

pjanotti
Copy link
Contributor

Lint is not happening for GOOS=windows . This change restores lint for Windows on CI runs.

We may have to fix a bunch of lint issues before being able to merge this one.

Noticed while looking at the failures from #34639

@pjanotti pjanotti requested review from a team and dmitryax August 13, 2024 16:50
@pjanotti pjanotti changed the title Restore Lint on Windows [chore] Restore Lint on Windows Aug 13, 2024
@pjanotti
Copy link
Contributor Author

yep, there are some things to be fixed before we can consider merging this one...

@songy23 songy23 added the Run Windows Enable running windows test on a PR label Aug 13, 2024
@@ -54,7 +54,7 @@ $(TOOLS_BIN_DIR):
mkdir -p $@

$(TOOLS_BIN_NAMES): $(TOOLS_BIN_DIR) $(TOOLS_MOD_DIR)/go.mod
cd $(TOOLS_MOD_DIR) && $(GOCMD) build -o $@ -trimpath $(filter %/$(notdir $@),$(TOOLS_PKG_NAMES))
cd $(TOOLS_MOD_DIR) && GOOS="" $(GOCMD) build -o $@ -trimpath $(filter %/$(notdir $@),$(TOOLS_PKG_NAMES))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seems reasonable to enforce this here since these tools are be used locally - at first I can't see a typical case in which we want this to follow GOOS. This is also showing that the step to check the cache, used to skip make install-tools is also wrong.

@crobert-1 crobert-1 added the ready to merge Code review completed; ready to merge by maintainers label Aug 14, 2024
@pjanotti
Copy link
Contributor Author

Opened #34691 to track the gotestsum: Device or resource busy failures.

@dmitryax dmitryax merged commit e6d1e6c into open-telemetry:main Aug 14, 2024
168 of 170 checks passed
@github-actions github-actions bot added this to the next release milestone Aug 14, 2024
@pjanotti pjanotti deleted the restore-lint-on-windows branch August 14, 2024 20:33
f7o pushed a commit to f7o/opentelemetry-collector-contrib that referenced this pull request Sep 12, 2024
Lint is not happening for `GOOS=windows` . This change restores lint for
Windows on CI runs.

We may have to fix a bunch of lint issues before being able to merge
this one.

Noticed while looking at the failures from open-telemetry#34639
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg/stanza ready to merge Code review completed; ready to merge by maintainers receiver/hostmetrics receiver/iis Run Windows Enable running windows test on a PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants