Skip to content

can find the package in default #5

Description

@changchichung

if go build by default(no modification aafter git clone) , there will be an error message

go build
postgresql_exporter.go:17:2: cannot find package "github.com/mc2soft/postgresql_exporter/metrics" in any of:
	/home/mnn/go/src/postgresql_exporter/vendor/github.com/mc2soft/postgresql_exporter/metrics (vendor tree)
	/home/mnn/go/src/postgresql_exporter/vendor/github.com/mc2soft/postgresql_exporter/metrics
	/home/mnn/go/src/postgresql_exporter/vendor/github.com/mc2soft/postgresql_exporter/metrics
	/usr/lib/go-1.6/src/github.com/mc2soft/postgresql_exporter/metrics (from $GOROOT)
	/home/mnn/bin/src/github.com/mc2soft/postgresql_exporter/metrics (from $GOPATH)
	/home/mnn/bin/src/github.com/mc2soft/postgresql_exporter/metrics
	/home/mnn/bin/src/github.com/mc2soft/postgresql_exporter/metrics
	/home/mnn/bin/src/github.com/mc2soft/postgresql_exporter/metrics
	/usr/local/sbin/src/github.com/mc2soft/postgresql_exporter/metrics
	/usr/local/bin/src/github.com/mc2soft/postgresql_exporter/metrics
	/usr/sbin/src/github.com/mc2soft/postgresql_exporter/metrics
	/usr/bin/src/github.com/mc2soft/postgresql_exporter/metrics
	/sbin/src/github.com/mc2soft/postgresql_exporter/metrics
	/bin/src/github.com/mc2soft/postgresql_exporter/metrics
	/usr/games/src/github.com/mc2soft/postgresql_exporter/metrics
	/usr/local/games/src/github.com/mc2soft/postgresql_exporter/metrics
	/snap/bin/src/github.com/mc2soft/postgresql_exporter/metrics
	/home/mnn/go/src/github.com/mc2soft/postgresql_exporter/metrics
	/home/mnn/go/src/github.com/mc2soft/postgresql_exporter/metrics
	/home/mnn/go/src/github.com/mc2soft/postgresql_exporter/metrics

so I have to manually copy the metric folder to /home/mnn/go/src/postgresql_exporter/vendor/github.com/mc2soft/postgresql_exporter/metrics and the go build .
is that normal ??

Activity

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

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