Skip to content

util/main.go:12:8: import "basecouch": cannot find package #1

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

Closed
PaulCapestany opened this issue Oct 26, 2012 · 1 comment
Closed
Assignees

Comments

@PaulCapestany
Copy link
Contributor

I was getting the following error when first trying to get basecouch to work:

util/main.go:12:8: import "basecouch": cannot find package

To get it to work, in main.go I changed

import "basecouch"

to

import "github.com/couchbaselabs/basecouch"

and everything worked perfectly then. Not sure if that's the proper approach with the Go package structure or not (today was my first time using Go), but thought I'd point it out.

@snej
Copy link
Contributor

snej commented Oct 26, 2012

Oops, you're right. It only worked for me, because I had the source code in src/basecouch, not src/github.com/couchbaselabs/basecouch/. I've fixed the import now (and moved my source folder.)

@snej snej closed this as completed Oct 26, 2012
@tleyden tleyden self-assigned this Nov 17, 2017
cbbruno added a commit that referenced this issue Feb 15, 2022
* initial commit, go get and test working

* fix goutils dependency

* delete pkg, mod tidy

* basic ci

* minor ci yml changes

* badge change

* revamp of build.sh

* ci os matrix, race, shell scripts

* removing windows for now

* rework of ci yml

* test go private

* build ce as before

* rename build job, test pkgs

* fix gofmt

* fix gofmt, #2

* add jenkins build script

* initial jenkins build script

* fix double PATH, remove SG_COMMIT

* redo mod tidy

* fix coverpkg

* fix typo, update jenkins build script from job

* leaving coverpkg out for now

* readme reset

* readme and build instructions

* initial PR-Jenkinsfile

* dummy to trigger jenkins

* Delete DUMMY

* add checkout

* no ee build for now

* move checkout after go setup

* split scm checkout 1 and 2

* fix vet fmt

* fix gocov

* fix gocov sh command

* fix git status wrapper

* fix git status wrapper, #2

* fix gotools vs gopath

* go plugin bare minimum

* go plugin bare minimum, #2

* go plugin bare minimum, #3

* go plugin bare minimum, #5

* go plugin bare minimum, #6

* revert go plugin

* removed bootstrap

* removed global 111 module off

* add platform builds

* try to cleanup pre scm

* remove mv

* remove EE for now

* add checks

* go tools install vs get

* remove GOPATH, GOTOOLS

* add tests

* fix GOPATH #1

* add benchmarks and post

* force git ssh for go-fleecedelta

* removed commented out gopath and gotools

* add git ssh config, cleanup comments

* minor changes and cleanup before PR

* update license to BSL 1.1, PR feedback

* ci yaml go version and remove cache

* sync files from upstream

* initial ec2 jenkinsfile sync

* remove cache and go version, p2
cbbruno added a commit that referenced this issue Feb 17, 2022
* initial commit, go get and test working

* fix goutils dependency

* delete pkg, mod tidy

* basic ci

* minor ci yml changes

* badge change

* revamp of build.sh

* ci os matrix, race, shell scripts

* removing windows for now

* rework of ci yml

* test go private

* build ce as before

* rename build job, test pkgs

* fix gofmt

* fix gofmt, #2

* add jenkins build script

* initial jenkins build script

* fix double PATH, remove SG_COMMIT

* redo mod tidy

* fix coverpkg

* fix typo, update jenkins build script from job

* leaving coverpkg out for now

* readme reset

* readme and build instructions

* initial PR-Jenkinsfile

* dummy to trigger jenkins

* Delete DUMMY

* add checkout

* no ee build for now

* move checkout after go setup

* split scm checkout 1 and 2

* fix vet fmt

* fix gocov

* fix gocov sh command

* fix git status wrapper

* fix git status wrapper, #2

* fix gotools vs gopath

* go plugin bare minimum

* go plugin bare minimum, #2

* go plugin bare minimum, #3

* go plugin bare minimum, #5

* go plugin bare minimum, #6

* revert go plugin

* removed bootstrap

* removed global 111 module off

* add platform builds

* try to cleanup pre scm

* remove mv

* remove EE for now

* add checks

* go tools install vs get

* remove GOPATH, GOTOOLS

* add tests

* fix GOPATH #1

* add benchmarks and post

* force git ssh for go-fleecedelta

* removed commented out gopath and gotools

* add git ssh config, cleanup comments

* minor changes and cleanup before PR

* update license to BSL 1.1, PR feedback

* ci yaml go version and remove cache

* sync files from upstream

* initial ec2 jenkinsfile sync

* remove cache and go version, p2

CBG-1851: go get within sshagent

CBG-1851: go mod download vs get

CBG-1851: checks and tests

CBG-1851: test no gopath

CBG-1851: remove cbbruno, fix gocov

CBG-1851: remove comments, .old files

CBG-1851: initial manifest for testing

CBG-1851: remove old default manifest

CBG-1851: remove test branch and build repo

CBG-1851: commented out local exports

CBG-1851: removed test revision from manifest
cbbruno added a commit that referenced this issue Feb 17, 2022
* initial commit, go get and test working

* fix goutils dependency

* delete pkg, mod tidy

* basic ci

* minor ci yml changes

* badge change

* revamp of build.sh

* ci os matrix, race, shell scripts

* removing windows for now

* rework of ci yml

* test go private

* build ce as before

* rename build job, test pkgs

* fix gofmt

* fix gofmt, #2

* add jenkins build script

* initial jenkins build script

* fix double PATH, remove SG_COMMIT

* redo mod tidy

* fix coverpkg

* fix typo, update jenkins build script from job

* leaving coverpkg out for now

* readme reset

* readme and build instructions

* initial PR-Jenkinsfile

* dummy to trigger jenkins

* Delete DUMMY

* add checkout

* no ee build for now

* move checkout after go setup

* split scm checkout 1 and 2

* fix vet fmt

* fix gocov

* fix gocov sh command

* fix git status wrapper

* fix git status wrapper, #2

* fix gotools vs gopath

* go plugin bare minimum

* go plugin bare minimum, #2

* go plugin bare minimum, #3

* go plugin bare minimum, #5

* go plugin bare minimum, #6

* revert go plugin

* removed bootstrap

* removed global 111 module off

* add platform builds

* try to cleanup pre scm

* remove mv

* remove EE for now

* add checks

* go tools install vs get

* remove GOPATH, GOTOOLS

* add tests

* fix GOPATH #1

* add benchmarks and post

* force git ssh for go-fleecedelta

* removed commented out gopath and gotools

* add git ssh config, cleanup comments

* minor changes and cleanup before PR

* update license to BSL 1.1, PR feedback

* ci yaml go version and remove cache

* sync files from upstream

* initial ec2 jenkinsfile sync

* remove cache and go version, p2

CBG-1851: go get within sshagent

CBG-1851: go mod download vs get

CBG-1851: checks and tests

CBG-1851: test no gopath

CBG-1851: remove cbbruno, fix gocov

CBG-1851: remove comments, .old files

CBG-1851: initial manifest for testing

CBG-1851: remove old default manifest

CBG-1851: remove test branch and build repo

CBG-1851: commented out local exports

CBG-1851: removed test revision from manifest
cbbruno added a commit that referenced this issue Feb 18, 2022
* CBG-1851: Switch builds to use Go Modules (#5430)

* initial commit, go get and test working

* fix goutils dependency

* delete pkg, mod tidy

* basic ci

* minor ci yml changes

* badge change

* revamp of build.sh

* ci os matrix, race, shell scripts

* removing windows for now

* rework of ci yml

* test go private

* build ce as before

* rename build job, test pkgs

* fix gofmt

* fix gofmt, #2

* add jenkins build script

* initial jenkins build script

* fix double PATH, remove SG_COMMIT

* redo mod tidy

* fix coverpkg

* fix typo, update jenkins build script from job

* leaving coverpkg out for now

* readme reset

* readme and build instructions

* initial PR-Jenkinsfile

* dummy to trigger jenkins

* Delete DUMMY

* add checkout

* no ee build for now

* move checkout after go setup

* split scm checkout 1 and 2

* fix vet fmt

* fix gocov

* fix gocov sh command

* fix git status wrapper

* fix git status wrapper, #2

* fix gotools vs gopath

* go plugin bare minimum

* go plugin bare minimum, #2

* go plugin bare minimum, #3

* go plugin bare minimum, #5

* go plugin bare minimum, #6

* revert go plugin

* removed bootstrap

* removed global 111 module off

* add platform builds

* try to cleanup pre scm

* remove mv

* remove EE for now

* add checks

* go tools install vs get

* remove GOPATH, GOTOOLS

* add tests

* fix GOPATH #1

* add benchmarks and post

* force git ssh for go-fleecedelta

* removed commented out gopath and gotools

* add git ssh config, cleanup comments

* minor changes and cleanup before PR

* update license to BSL 1.1, PR feedback

* ci yaml go version and remove cache

* sync files from upstream

* initial ec2 jenkinsfile sync

* remove cache and go version, p2

CBG-1851: go get within sshagent

CBG-1851: go mod download vs get

CBG-1851: checks and tests

CBG-1851: test no gopath

CBG-1851: remove cbbruno, fix gocov

CBG-1851: remove comments, .old files

CBG-1851: initial manifest for testing

CBG-1851: remove old default manifest

CBG-1851: remove test branch and build repo

CBG-1851: commented out local exports

CBG-1851: removed test revision from manifest

* CBG-1851: update go-blip

* CBG-1851: fix rebase, mv checkout

* CBG-1851: PR feedback, p1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants