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

Remove invalid go:build instructions #30461

Closed
atoulme opened this issue Jan 12, 2024 · 23 comments · Fixed by #30996
Closed

Remove invalid go:build instructions #30461

atoulme opened this issue Jan 12, 2024 · 23 comments · Fixed by #30996

Comments

@atoulme
Copy link
Contributor

atoulme commented Jan 12, 2024

Component(s)

No response

Describe the issue you're reporting

The following files contain instructions regarding Windows:

receiver/aerospikereceiver/doc.go://go:build !windows
receiver/couchdbreceiver/doc.go://go:build !windows
receiver/elasticsearchreceiver/doc.go://go:build !windows
receiver/hostmetricsreceiver/internal/scraper/cpuscraper/doc.go://go:build !windows
receiver/hostmetricsreceiver/internal/scraper/diskscraper/doc.go://go:build !windows
receiver/hostmetricsreceiver/internal/scraper/filesystemscraper/doc.go://go:build !windows
receiver/hostmetricsreceiver/internal/scraper/loadscraper/doc.go://go:build !windows
receiver/hostmetricsreceiver/internal/scraper/memoryscraper/doc.go://go:build !windows
receiver/hostmetricsreceiver/internal/scraper/networkscraper/doc.go://go:build !windows
receiver/hostmetricsreceiver/internal/scraper/pagingscraper/doc.go://go:build !windows
receiver/hostmetricsreceiver/internal/scraper/processesscraper/doc.go://go:build !windows
receiver/hostmetricsreceiver/internal/scraper/processscraper/doc.go://go:build !windows
receiver/kafkametricsreceiver/doc.go://go:build !windows
receiver/kubeletstatsreceiver/doc.go://go:build !windows
receiver/memcachedreceiver/doc.go://go:build !windows
receiver/mongodbatlasreceiver/doc.go://go:build !windows
receiver/mongodbreceiver/doc.go://go:build !windows
receiver/nginxreceiver/doc.go://go:build !windows
receiver/redisreceiver/doc.go://go:build !windows
receiver/saphanareceiver/doc.go://go:build !windows
receiver/zookeeperreceiver/doc.go://go:build !windows

Remove the following:

//go:build !windows
// +build !windows

from all those doc.go files as they should not be present.

Copy link
Contributor

Pinging code owners for receiver/mongodbatlas: @djaglowski @schmikei. See Adding Labels via Comments if you do not have permissions to add labels yourself.

Copy link
Contributor

Pinging code owners for receiver/memcached: @djaglowski. See Adding Labels via Comments if you do not have permissions to add labels yourself.

Copy link
Contributor

Pinging code owners for receiver/elasticsearch: @djaglowski @BinaryFissionGames. See Adding Labels via Comments if you do not have permissions to add labels yourself.

Copy link
Contributor

Pinging code owners for receiver/hostmetrics: @dmitryax @braydonk. See Adding Labels via Comments if you do not have permissions to add labels yourself.

Copy link
Contributor

Pinging code owners for receiver/redis: @dmitryax @hughesjj. See Adding Labels via Comments if you do not have permissions to add labels yourself.

Copy link
Contributor

Pinging code owners for receiver/nginx: @djaglowski. See Adding Labels via Comments if you do not have permissions to add labels yourself.

Copy link
Contributor

Pinging code owners for receiver/mongodb: @djaglowski @schmikei. See Adding Labels via Comments if you do not have permissions to add labels yourself.

Copy link
Contributor

Pinging code owners for receiver/saphana: @dehaansa. See Adding Labels via Comments if you do not have permissions to add labels yourself.

Copy link
Contributor

Pinging code owners for receiver/couchdb: @djaglowski. See Adding Labels via Comments if you do not have permissions to add labels yourself.

Copy link
Contributor

Pinging code owners for receiver/kubeletstats: @dmitryax @TylerHelmuth. See Adding Labels via Comments if you do not have permissions to add labels yourself.

Copy link
Contributor

Pinging code owners for receiver/zookeeper: @djaglowski. See Adding Labels via Comments if you do not have permissions to add labels yourself.

Copy link
Contributor

Pinging code owners for receiver/aerospike: @djaglowski @antonblock. See Adding Labels via Comments if you do not have permissions to add labels yourself.

Copy link
Contributor

Pinging code owners for receiver/kafkametrics: @dmitryax. See Adding Labels via Comments if you do not have permissions to add labels yourself.

@atoulme atoulme added the help wanted Extra attention is needed label Jan 12, 2024
@atoulme atoulme added the good first issue Good for newcomers label Jan 12, 2024
dmitryax pushed a commit that referenced this issue Jan 24, 2024
**Description:** removes dead code

**Link to tracking Issue:**
[30461](#30461)
@kernelpanic77
Copy link
Contributor

kernelpanic77 commented Jan 31, 2024

Hi @atoulme! This seems like a stale issue. I'll like to work on this in case it still requires a PR.

@atoulme
Copy link
Contributor Author

atoulme commented Jan 31, 2024

@kernelpanic77 it's not stale. It's very much still a problem.

@atoulme
Copy link
Contributor Author

atoulme commented Jan 31, 2024

$> git grep go:build | grep doc.go
receiver/aerospikereceiver/doc.go://go:build !windows
receiver/couchdbreceiver/doc.go://go:build !windows
receiver/elasticsearchreceiver/doc.go://go:build !windows
receiver/hostmetricsreceiver/internal/scraper/cpuscraper/doc.go://go:build !windows
receiver/hostmetricsreceiver/internal/scraper/diskscraper/doc.go://go:build !windows
receiver/hostmetricsreceiver/internal/scraper/filesystemscraper/doc.go://go:build !windows
receiver/hostmetricsreceiver/internal/scraper/loadscraper/doc.go://go:build !windows
receiver/hostmetricsreceiver/internal/scraper/memoryscraper/doc.go://go:build !windows
receiver/hostmetricsreceiver/internal/scraper/networkscraper/doc.go://go:build !windows
receiver/hostmetricsreceiver/internal/scraper/pagingscraper/doc.go://go:build !windows
receiver/hostmetricsreceiver/internal/scraper/processesscraper/doc.go://go:build !windows
receiver/hostmetricsreceiver/internal/scraper/processscraper/doc.go://go:build !windows
receiver/kafkametricsreceiver/doc.go://go:build !windows
receiver/kubeletstatsreceiver/doc.go://go:build !windows
receiver/mongodbatlasreceiver/doc.go://go:build !windows
receiver/mongodbreceiver/doc.go://go:build !windows
receiver/nginxreceiver/doc.go://go:build !windows
receiver/zookeeperreceiver/doc.go://go:build !windows

@atoulme
Copy link
Contributor Author

atoulme commented Jan 31, 2024

  • aerospikereceiver
  • couchdbreceiver
  • elasticsearchreceiver
  • hostmetricsreceiver
  • kafkametricsreceiver
  • kubeletstatsreceiver
  • mongodbatlasreceiver
  • mongodbreceiver
  • nginxreceiver
  • zookeeperreceiver

@atoulme
Copy link
Contributor Author

atoulme commented Jan 31, 2024

@kernelpanic77 all yours 🎉

@atoulme
Copy link
Contributor Author

atoulme commented Feb 1, 2024

Here is one to illustrate the changes needed: #30988 please feel free to review and approve if it's worth merging.

@djaglowski
Copy link
Member

Apologies for overlooking this issue. I'll open a PR against the rest of the components not covered in #30988

@kernelpanic77
Copy link
Contributor

@djaglowski I have opened a PR for rest of the components.

@djaglowski
Copy link
Member

@kernelpanic77, I apologize for missing that you had picked this up. I just noticed this morning it was opened three weeks ago and immediately opened up #30996 with the same changes.

cparkins pushed a commit to AmadeusITGroup/opentelemetry-collector-contrib that referenced this issue Feb 1, 2024
…elemetry#30632)

**Description:** removes dead code

**Link to tracking Issue:**
[30461](open-telemetry#30461)
cparkins pushed a commit to AmadeusITGroup/opentelemetry-collector-contrib that referenced this issue Feb 1, 2024
cparkins pushed a commit to AmadeusITGroup/opentelemetry-collector-contrib that referenced this issue Feb 1, 2024
@kernelpanic77
Copy link
Contributor

That's alright @djaglowski. I now see there are a couple of other PRs as well which are trying to fix the issue. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment