Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.

Not able to find lookup_unix.go using wierd gopath/goroot #69

@pontusarfwedson

Description

@pontusarfwedson

Description

When running sonar-scanner within the docker container specified by the Dockerfile specified in https://github.com/cathive/concourse-sonarqube-resource and have coverage, test and report from the tools described here we get:
ERROR: Not able to find an InputFile from ./../../../../usr/local/go/src/net/lookup_unix.go
This is being run as a resource in the CI system Concourse but basically the script out in the dir assets is what is being run inside the container.

Steps to Reproduce

Can be difficult to reproduce the exact way we do (since we run it as a resource to Concourse) but might be possible to just run the docker image, exec into it and start the sonar scanner.

Content of your sonar-project.properties

sonar.projectKey=
sonar.projectName=
sonar.sources=.
sonar.inclusions=/.go

  • and we pass in the url when we run.

Log of sonar-scanner related to the plugin

The plugin logs major events, including which report files have been found and analyzed.
Errors we encounter + some warning output and standard output:

ERROR: Highlighting problem on save
ERROR: Highlighting problem on save
ERROR: Highlighting problem on save
ERROR: Highlighting problem on save
ERROR: Highlighting problem on save
ERROR: Highlighting problem on save
ERROR: Highlighting problem on save
ERROR: Not able to find an InputFile from ./../../../../usr/local/go/src/net/lookup_unix.go
ERROR: Not able to find an InputFile from ./../../../../usr/local/go/src/net/lookup_unix.go
ERROR: Not able to find an InputFile from ./../../../../usr/local/go/src/net/lookup_unix.go
.
.
.
ERROR: Not able to find an InputFile from ./../../../../usr/local/go/src/net/lookup_unix.go
ERROR: Not able to find an InputFile from ./../../../../usr/local/go/src/net/lookup_unix.go

Versions

Server is running Sonarqube docker image 6.7.2 and sonar-scanner 3.1.0.1141 and plugin version 1.2.11.

Additional Information

The reason might not be anything else than that we need to have golang installed in our environment when we run sonar-scanner with the go plugin but I cannot seem to find any information regarding that. Do we?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions