Skip to content

Commit

Permalink
Adapt imports, metadata, and tests for the github move
Browse files Browse the repository at this point in the history
  • Loading branch information
bz2 committed Jun 3, 2014
1 parent 00e66cc commit 445a79b
Show file tree
Hide file tree
Showing 967 changed files with 4,124 additions and 4,314 deletions.
1 change: 1 addition & 0 deletions .bzrignore → .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ cmd/charmload/charmload
.emacs.desktop
.emacs.desktop.lock
*.test
*.sw[nop]
1 change: 0 additions & 1 deletion .lbox

This file was deleted.

22 changes: 11 additions & 11 deletions CONTRIBUTING
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ All changes to `juju-core` must be performed on a branch, that branch reviewed,
then submitted. An overview of the commands used to do so follows. These
examples use the `bzr` command, which is assumed to be aliased to `cobzr`, as
described above. It is also assumed that your working directory is
$GOPATH/src/launchpad.net/juju-core.
$GOPATH/src/github.com/juju/juju.

First, create a branch for your change using the following command

Expand Down Expand Up @@ -84,8 +84,8 @@ group is alphabetically sorted. eg:
gc "launchpad.net/gocheck"
"github.com/juju/loggo"

"launchpad.net/juju-core/state"
"launchpad.net/juju-core/worker"
"github.com/juju/juju/state"
"github.com/juju/juju/worker"
)

Because "launchpad.net/gocheck" will be referenced frequently in test suites,
Expand All @@ -100,7 +100,7 @@ at http://go.pkgdoc.org/pkg/launchpad.net/gocheck. `gocheck` is integrated
into the source of each package so the standard `go test` command is used
to run `gocheck` tests. For example

go test launchpad.net/juju-core/...
go test github.com/juju/juju/...

will run all the tests in the `juju-core` project. By default `gocheck` prints
only minimal output, and as `gocheck` is hooked into the testing framework via
Expand All @@ -127,10 +127,10 @@ to match a subset of test names.
Finally, because by default `go test` runs the tests in the current package, and
is not recursive, the following commands are equal, and will produce no output.

cd $GOPATH/src/launchpad.net/juju-core
cd $GOPATH/src/github.com/juju/juju
go test

go test launchpad.net/juju-core
go test github.com/juju/juju

MongoDB
-------
Expand All @@ -143,7 +143,7 @@ that supports Javascript for map-reduce functions. These functions are not
supported by juju-mongodb and the associated tests will fail unless disabled
with an environment variable:

JUJU_NOTEST_MONGOJS=1 go test launchpad.net/juju-core/...
JUJU_NOTEST_MONGOJS=1 go test github.com/juju/juju/...

Proposing
=========
Expand Down Expand Up @@ -222,7 +222,7 @@ lbox hooks

Before proposing, `lbox` runs a number of hooks to improve code quality and
ensure that code is properly formatted. These checks are in
`$GOPATH/src/launchpad.net/juju-core/.lbox.check`. They are run automatically
`$GOPATH/src/github.com/juju/juju/.lbox.check`. They are run automatically
by `lbox` before proposing or submitting. If these hooks fail you will have
to resolve those errors before trying again. For example

Expand All @@ -247,6 +247,6 @@ installation with all freshly downloaded directories.
The bash commands used to generate it from scratch are as follows:

% export GOPATH=/tmp/juju-build
% go get launchpad.net/juju-core/...
% go test launchpad.net/juju-core/...
% godeps -t $(go list launchpad.net/juju-core/...) > dependencies.tsv
% go get github.com/juju/juju/...
% go test github.com/juju/juju/...
% godeps -t $(go list github.com/juju/juju/...) > dependencies.tsv
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ifndef GOPATH
$(warning You need to set up a GOPATH. See the README file.)
endif

PROJECT := launchpad.net/juju-core
PROJECT := github.com/juju/juju
PROJECT_DIR := $(shell go list -e -f '{{.Dir}}' $(PROJECT))

ifeq ($(shell uname -p | sed -r 's/.*(x86|armel|armhf).*/golang/'), golang)
Expand Down
8 changes: 4 additions & 4 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Getting juju-core

The easiest way to get the source for `juju-core` is to use the `go get` command.

go get -v launchpad.net/juju-core/...
go get -v github.com/juju/juju/...

This command will checkout the source of `juju-core` and inspect it for any unmet
Go package dependencies, downloading those as well. `go get` will also build and
Expand All @@ -74,16 +74,16 @@ install `juju-core` and its dependencies. To checkout without installing, use th
go help get

At this point you will have the bzr working copy of the `juju-core` source at
`$GOPATH/launchpad.net/juju-core`. The source for any dependent packages will
`$GOPATH/github.com/juju/juju`. The source for any dependent packages will
also be available inside `$GOPATH`. You can use `bzr pull`, or the less convenient
`go get -u launchpad.net/juju-core/...` to update the source from time to time.
`go get -u github.com/juju/juju/...` to update the source from time to time.
If you want to know more about contributing to `juju-core`, please read the
`CONTRIBUTING` companion to this file.

Building juju-core
==================

go install -v launchpad.net/juju-core/...
go install -v github.com/juju/juju/...

Will build juju and install the binary commands into `$GOPATH/bin`. It is likely
if you have just completed the previous step to get the `juju-core` source, the
Expand Down
12 changes: 6 additions & 6 deletions agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ import (
"github.com/juju/errors"
"github.com/juju/loggo"

"launchpad.net/juju-core/instance"
"launchpad.net/juju-core/state"
"launchpad.net/juju-core/state/api"
"launchpad.net/juju-core/state/api/params"
"launchpad.net/juju-core/utils"
"launchpad.net/juju-core/version"
"github.com/juju/juju/instance"
"github.com/juju/juju/state"
"github.com/juju/juju/state/api"
"github.com/juju/juju/state/api/params"
"github.com/juju/juju/utils"
"github.com/juju/juju/version"
)

var logger = loggo.GetLogger("juju.agent")
Expand Down
14 changes: 7 additions & 7 deletions agent/agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import (
jc "github.com/juju/testing/checkers"
gc "launchpad.net/gocheck"

"launchpad.net/juju-core/agent"
"launchpad.net/juju-core/instance"
"launchpad.net/juju-core/state"
"launchpad.net/juju-core/state/api"
"launchpad.net/juju-core/state/api/params"
"launchpad.net/juju-core/testing"
"launchpad.net/juju-core/version"
"github.com/juju/juju/agent"
"github.com/juju/juju/instance"
"github.com/juju/juju/state"
"github.com/juju/juju/state/api"
"github.com/juju/juju/state/api/params"
"github.com/juju/juju/testing"
"github.com/juju/juju/version"
)

type suite struct {
Expand Down
16 changes: 8 additions & 8 deletions agent/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ package agent
import (
"fmt"

"launchpad.net/juju-core/constraints"
"launchpad.net/juju-core/environs/config"
"launchpad.net/juju-core/instance"
"launchpad.net/juju-core/names"
"launchpad.net/juju-core/state"
"launchpad.net/juju-core/state/api/params"
"launchpad.net/juju-core/utils"
"launchpad.net/juju-core/version"
"github.com/juju/juju/constraints"
"github.com/juju/juju/environs/config"
"github.com/juju/juju/instance"
"github.com/juju/juju/names"
"github.com/juju/juju/state"
"github.com/juju/juju/state/api/params"
"github.com/juju/juju/utils"
"github.com/juju/juju/version"
)

// InitializeState should be called on the bootstrap machine's agent
Expand Down
22 changes: 11 additions & 11 deletions agent/bootstrap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ import (
jc "github.com/juju/testing/checkers"
gc "launchpad.net/gocheck"

"launchpad.net/juju-core/agent"
"launchpad.net/juju-core/constraints"
"launchpad.net/juju-core/environs"
"launchpad.net/juju-core/environs/config"
"launchpad.net/juju-core/instance"
"launchpad.net/juju-core/provider/dummy"
"launchpad.net/juju-core/state"
"launchpad.net/juju-core/state/api/params"
"launchpad.net/juju-core/testing"
"launchpad.net/juju-core/utils"
"launchpad.net/juju-core/version"
"github.com/juju/juju/agent"
"github.com/juju/juju/constraints"
"github.com/juju/juju/environs"
"github.com/juju/juju/environs/config"
"github.com/juju/juju/instance"
"github.com/juju/juju/provider/dummy"
"github.com/juju/juju/state"
"github.com/juju/juju/state/api/params"
"github.com/juju/juju/testing"
"github.com/juju/juju/utils"
"github.com/juju/juju/version"
)

type bootstrapSuite struct {
Expand Down
2 changes: 1 addition & 1 deletion agent/export_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"fmt"
"os"

"launchpad.net/juju-core/state/api/params"
"github.com/juju/juju/state/api/params"
)

func Password(config Config) string {
Expand Down
4 changes: 2 additions & 2 deletions agent/format-1.16.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (

"launchpad.net/goyaml"

"launchpad.net/juju-core/state/api/params"
"launchpad.net/juju-core/version"
"github.com/juju/juju/state/api/params"
"github.com/juju/juju/version"
)

var format_1_16 = formatter_1_16{}
Expand Down
6 changes: 3 additions & 3 deletions agent/format-1.16_whitebox_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import (
jc "github.com/juju/testing/checkers"
gc "launchpad.net/gocheck"

"launchpad.net/juju-core/testing"
"launchpad.net/juju-core/utils"
"launchpad.net/juju-core/version"
"github.com/juju/juju/testing"
"github.com/juju/juju/utils"
"github.com/juju/juju/version"
)

type format_1_16Suite struct {
Expand Down
4 changes: 2 additions & 2 deletions agent/format-1.18.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (

"launchpad.net/goyaml"

"launchpad.net/juju-core/state/api/params"
"launchpad.net/juju-core/version"
"github.com/juju/juju/state/api/params"
"github.com/juju/juju/version"
)

var format_1_18 = formatter_1_18{}
Expand Down
8 changes: 4 additions & 4 deletions agent/format-1.18_whitebox_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import (
jc "github.com/juju/testing/checkers"
gc "launchpad.net/gocheck"

"launchpad.net/juju-core/state/api/params"
"launchpad.net/juju-core/testing"
"launchpad.net/juju-core/utils"
"launchpad.net/juju-core/version"
"github.com/juju/juju/state/api/params"
"github.com/juju/juju/testing"
"github.com/juju/juju/utils"
"github.com/juju/juju/version"
)

type format_1_18Suite struct {
Expand Down
2 changes: 1 addition & 1 deletion agent/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"fmt"
"strings"

"launchpad.net/juju-core/utils"
"github.com/juju/juju/utils"
)

// Current agent config format is defined as follows:
Expand Down
6 changes: 3 additions & 3 deletions agent/format_whitebox_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
jc "github.com/juju/testing/checkers"
gc "launchpad.net/gocheck"

"launchpad.net/juju-core/state/api/params"
"launchpad.net/juju-core/testing"
"launchpad.net/juju-core/version"
"github.com/juju/juju/state/api/params"
"github.com/juju/juju/testing"
"github.com/juju/juju/version"
)

type formatSuite struct {
Expand Down
2 changes: 1 addition & 1 deletion agent/identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"fmt"
"os"

"launchpad.net/juju-core/utils"
"github.com/juju/juju/utils"
)

func WriteSystemIdentityFile(c Config) error {
Expand Down
6 changes: 3 additions & 3 deletions agent/identity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (

gc "launchpad.net/gocheck"

"launchpad.net/juju-core/state/api/params"
"launchpad.net/juju-core/testing"
"launchpad.net/juju-core/version"
"github.com/juju/juju/state/api/params"
"github.com/juju/juju/testing"
"github.com/juju/juju/version"
)

type identitySuite struct {
Expand Down
14 changes: 7 additions & 7 deletions agent/mongo/mongo.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ import (
"github.com/juju/loggo"
"labix.org/v2/mgo"

"launchpad.net/juju-core/instance"
"launchpad.net/juju-core/replicaset"
"launchpad.net/juju-core/state/api/params"
"launchpad.net/juju-core/upstart"
"launchpad.net/juju-core/utils"
"launchpad.net/juju-core/utils/apt"
"launchpad.net/juju-core/version"
"github.com/juju/juju/instance"
"github.com/juju/juju/replicaset"
"github.com/juju/juju/state/api/params"
"github.com/juju/juju/upstart"
"github.com/juju/juju/utils"
"github.com/juju/juju/utils/apt"
"github.com/juju/juju/version"
)

const (
Expand Down
14 changes: 7 additions & 7 deletions agent/mongo/mongo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ import (
jc "github.com/juju/testing/checkers"
gc "launchpad.net/gocheck"

"launchpad.net/juju-core/agent/mongo"
"launchpad.net/juju-core/instance"
"launchpad.net/juju-core/state/api/params"
coretesting "launchpad.net/juju-core/testing"
"launchpad.net/juju-core/upstart"
"launchpad.net/juju-core/utils"
"launchpad.net/juju-core/version"
"github.com/juju/juju/agent/mongo"
"github.com/juju/juju/instance"
"github.com/juju/juju/state/api/params"
coretesting "github.com/juju/juju/testing"
"github.com/juju/juju/upstart"
"github.com/juju/juju/utils"
"github.com/juju/juju/version"
)

func Test(t *stdtesting.T) { gc.TestingT(t) }
Expand Down
2 changes: 1 addition & 1 deletion agent/mongo/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

"labix.org/v2/mgo"

"launchpad.net/juju-core/upstart"
"github.com/juju/juju/upstart"
)

const mongoSocketTimeout = 10 * time.Second
Expand Down
6 changes: 3 additions & 3 deletions agent/mongo/upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import (
"labix.org/v2/mgo"
gc "launchpad.net/gocheck"

"launchpad.net/juju-core/agent/mongo"
coretesting "launchpad.net/juju-core/testing"
"launchpad.net/juju-core/upstart"
"github.com/juju/juju/agent/mongo"
coretesting "github.com/juju/juju/testing"
"github.com/juju/juju/upstart"
)

type EnsureAdminSuite struct {
Expand Down
2 changes: 1 addition & 1 deletion agent/package_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package agent_test
import (
stdtesting "testing"

"launchpad.net/juju-core/testing"
"github.com/juju/juju/testing"
)

func Test(t *stdtesting.T) {
Expand Down
4 changes: 2 additions & 2 deletions agent/tools/diskmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package tools
import (
"io"

"launchpad.net/juju-core/tools"
"launchpad.net/juju-core/version"
"github.com/juju/juju/tools"
"github.com/juju/juju/version"
)

// DiskManager keeps track of a collections of Juju agent tools in a directory
Expand Down
Loading

0 comments on commit 445a79b

Please sign in to comment.