osbuild-composer: Rename module to github.com/osbuild/osbuild-composer
This should be the best practice according to other popular go projects: - https://github.com/prometheus/prometheus - https://github.com/syncthing/syncthing - https://github.com/drone/drone - https://github.com/hashicorp/terraform Also, this change fixes go get command (it currently fails due to bad package name).
This commit is contained in:
parent
b0d9423b73
commit
15b82a15d2
18 changed files with 34 additions and 34 deletions
|
|
@ -5,10 +5,10 @@ import (
|
|||
"log"
|
||||
"os"
|
||||
|
||||
"osbuild-composer/internal/jobqueue"
|
||||
"osbuild-composer/internal/rpmmd"
|
||||
"osbuild-composer/internal/store"
|
||||
"osbuild-composer/internal/weldr"
|
||||
"github.com/osbuild/osbuild-composer/internal/jobqueue"
|
||||
"github.com/osbuild/osbuild-composer/internal/rpmmd"
|
||||
"github.com/osbuild/osbuild-composer/internal/store"
|
||||
"github.com/osbuild/osbuild-composer/internal/weldr"
|
||||
|
||||
"github.com/coreos/go-systemd/activation"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ import (
|
|||
|
||||
"github.com/google/uuid"
|
||||
|
||||
"osbuild-composer/internal/pipeline"
|
||||
"osbuild-composer/internal/target"
|
||||
"github.com/osbuild/osbuild-composer/internal/pipeline"
|
||||
"github.com/osbuild/osbuild-composer/internal/target"
|
||||
)
|
||||
|
||||
type Job struct {
|
||||
|
|
|
|||
2
go.mod
2
go.mod
|
|
@ -1,4 +1,4 @@
|
|||
module osbuild-composer
|
||||
module github.com/osbuild/osbuild-composer
|
||||
|
||||
go 1.12
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
package blueprint
|
||||
|
||||
import "osbuild-composer/internal/pipeline"
|
||||
import "github.com/osbuild/osbuild-composer/internal/pipeline"
|
||||
|
||||
type amiOutput struct{}
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
package blueprint
|
||||
|
||||
import (
|
||||
"osbuild-composer/internal/pipeline"
|
||||
"github.com/osbuild/osbuild-composer/internal/pipeline"
|
||||
"sort"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
package blueprint
|
||||
|
||||
import "osbuild-composer/internal/pipeline"
|
||||
import "github.com/osbuild/osbuild-composer/internal/pipeline"
|
||||
|
||||
type diskOutput struct{}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
package blueprint
|
||||
|
||||
import "osbuild-composer/internal/pipeline"
|
||||
import "github.com/osbuild/osbuild-composer/internal/pipeline"
|
||||
|
||||
type ext4Output struct{}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
package blueprint
|
||||
|
||||
import "osbuild-composer/internal/pipeline"
|
||||
import "github.com/osbuild/osbuild-composer/internal/pipeline"
|
||||
|
||||
type liveIsoOutput struct{}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
package blueprint
|
||||
|
||||
import "osbuild-composer/internal/pipeline"
|
||||
import "github.com/osbuild/osbuild-composer/internal/pipeline"
|
||||
|
||||
type openstackOutput struct{}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
package blueprint
|
||||
|
||||
import "osbuild-composer/internal/pipeline"
|
||||
import "github.com/osbuild/osbuild-composer/internal/pipeline"
|
||||
|
||||
type qcow2Output struct{}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
package blueprint
|
||||
|
||||
import "osbuild-composer/internal/pipeline"
|
||||
import "github.com/osbuild/osbuild-composer/internal/pipeline"
|
||||
|
||||
type tarOutput struct{}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
package blueprint
|
||||
|
||||
import "osbuild-composer/internal/pipeline"
|
||||
import "github.com/osbuild/osbuild-composer/internal/pipeline"
|
||||
|
||||
type vhdOutput struct{}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
package blueprint
|
||||
|
||||
import "osbuild-composer/internal/pipeline"
|
||||
import "github.com/osbuild/osbuild-composer/internal/pipeline"
|
||||
|
||||
type vmdkOutput struct{}
|
||||
|
||||
|
|
|
|||
|
|
@ -2,12 +2,12 @@ package jobqueue
|
|||
|
||||
import (
|
||||
"encoding/json"
|
||||
"github.com/osbuild/osbuild-composer/internal/pipeline"
|
||||
"github.com/osbuild/osbuild-composer/internal/store"
|
||||
"github.com/osbuild/osbuild-composer/internal/target"
|
||||
"log"
|
||||
"net"
|
||||
"net/http"
|
||||
"osbuild-composer/internal/pipeline"
|
||||
"osbuild-composer/internal/store"
|
||||
"osbuild-composer/internal/target"
|
||||
|
||||
"github.com/google/uuid"
|
||||
"github.com/julienschmidt/httprouter"
|
||||
|
|
|
|||
|
|
@ -10,9 +10,9 @@ import (
|
|||
"strings"
|
||||
"testing"
|
||||
|
||||
"osbuild-composer/internal/blueprint"
|
||||
"osbuild-composer/internal/jobqueue"
|
||||
"osbuild-composer/internal/store"
|
||||
"github.com/osbuild/osbuild-composer/internal/blueprint"
|
||||
"github.com/osbuild/osbuild-composer/internal/jobqueue"
|
||||
"github.com/osbuild/osbuild-composer/internal/store"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -4,12 +4,12 @@ package store
|
|||
|
||||
import (
|
||||
"encoding/json"
|
||||
"github.com/osbuild/osbuild-composer/internal/blueprint"
|
||||
"github.com/osbuild/osbuild-composer/internal/pipeline"
|
||||
"github.com/osbuild/osbuild-composer/internal/target"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"os"
|
||||
"osbuild-composer/internal/blueprint"
|
||||
"osbuild-composer/internal/pipeline"
|
||||
"osbuild-composer/internal/target"
|
||||
"path/filepath"
|
||||
"sort"
|
||||
"sync"
|
||||
|
|
|
|||
|
|
@ -13,9 +13,9 @@ import (
|
|||
"github.com/google/uuid"
|
||||
"github.com/julienschmidt/httprouter"
|
||||
|
||||
"osbuild-composer/internal/blueprint"
|
||||
"osbuild-composer/internal/rpmmd"
|
||||
"osbuild-composer/internal/store"
|
||||
"github.com/osbuild/osbuild-composer/internal/blueprint"
|
||||
"github.com/osbuild/osbuild-composer/internal/rpmmd"
|
||||
"github.com/osbuild/osbuild-composer/internal/store"
|
||||
)
|
||||
|
||||
type API struct {
|
||||
|
|
@ -681,8 +681,8 @@ func (api *API) composeStatusHandler(writer http.ResponseWriter, request *http.R
|
|||
id, err := uuid.Parse(uuidString)
|
||||
if err != nil {
|
||||
statusResponseError(writer, http.StatusBadRequest, "invalid UUID")
|
||||
return
|
||||
}
|
||||
return
|
||||
}
|
||||
uuids = append(uuids, id)
|
||||
}
|
||||
reply.UUIDs = api.store.ListQueue(uuids)
|
||||
|
|
|
|||
|
|
@ -13,9 +13,9 @@ import (
|
|||
"strings"
|
||||
"testing"
|
||||
|
||||
"osbuild-composer/internal/rpmmd"
|
||||
"osbuild-composer/internal/store"
|
||||
"osbuild-composer/internal/weldr"
|
||||
"github.com/osbuild/osbuild-composer/internal/rpmmd"
|
||||
"github.com/osbuild/osbuild-composer/internal/store"
|
||||
"github.com/osbuild/osbuild-composer/internal/weldr"
|
||||
)
|
||||
|
||||
var repo = rpmmd.RepoConfig{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue