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"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"osbuild-composer/internal/jobqueue"
|
"github.com/osbuild/osbuild-composer/internal/jobqueue"
|
||||||
"osbuild-composer/internal/rpmmd"
|
"github.com/osbuild/osbuild-composer/internal/rpmmd"
|
||||||
"osbuild-composer/internal/store"
|
"github.com/osbuild/osbuild-composer/internal/store"
|
||||||
"osbuild-composer/internal/weldr"
|
"github.com/osbuild/osbuild-composer/internal/weldr"
|
||||||
|
|
||||||
"github.com/coreos/go-systemd/activation"
|
"github.com/coreos/go-systemd/activation"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,8 @@ import (
|
||||||
|
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
|
|
||||||
"osbuild-composer/internal/pipeline"
|
"github.com/osbuild/osbuild-composer/internal/pipeline"
|
||||||
"osbuild-composer/internal/target"
|
"github.com/osbuild/osbuild-composer/internal/target"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Job struct {
|
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
|
go 1.12
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package blueprint
|
package blueprint
|
||||||
|
|
||||||
import "osbuild-composer/internal/pipeline"
|
import "github.com/osbuild/osbuild-composer/internal/pipeline"
|
||||||
|
|
||||||
type amiOutput struct{}
|
type amiOutput struct{}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
package blueprint
|
package blueprint
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"osbuild-composer/internal/pipeline"
|
"github.com/osbuild/osbuild-composer/internal/pipeline"
|
||||||
"sort"
|
"sort"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package blueprint
|
package blueprint
|
||||||
|
|
||||||
import "osbuild-composer/internal/pipeline"
|
import "github.com/osbuild/osbuild-composer/internal/pipeline"
|
||||||
|
|
||||||
type diskOutput struct{}
|
type diskOutput struct{}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package blueprint
|
package blueprint
|
||||||
|
|
||||||
import "osbuild-composer/internal/pipeline"
|
import "github.com/osbuild/osbuild-composer/internal/pipeline"
|
||||||
|
|
||||||
type ext4Output struct{}
|
type ext4Output struct{}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package blueprint
|
package blueprint
|
||||||
|
|
||||||
import "osbuild-composer/internal/pipeline"
|
import "github.com/osbuild/osbuild-composer/internal/pipeline"
|
||||||
|
|
||||||
type liveIsoOutput struct{}
|
type liveIsoOutput struct{}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package blueprint
|
package blueprint
|
||||||
|
|
||||||
import "osbuild-composer/internal/pipeline"
|
import "github.com/osbuild/osbuild-composer/internal/pipeline"
|
||||||
|
|
||||||
type openstackOutput struct{}
|
type openstackOutput struct{}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package blueprint
|
package blueprint
|
||||||
|
|
||||||
import "osbuild-composer/internal/pipeline"
|
import "github.com/osbuild/osbuild-composer/internal/pipeline"
|
||||||
|
|
||||||
type qcow2Output struct{}
|
type qcow2Output struct{}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package blueprint
|
package blueprint
|
||||||
|
|
||||||
import "osbuild-composer/internal/pipeline"
|
import "github.com/osbuild/osbuild-composer/internal/pipeline"
|
||||||
|
|
||||||
type tarOutput struct{}
|
type tarOutput struct{}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package blueprint
|
package blueprint
|
||||||
|
|
||||||
import "osbuild-composer/internal/pipeline"
|
import "github.com/osbuild/osbuild-composer/internal/pipeline"
|
||||||
|
|
||||||
type vhdOutput struct{}
|
type vhdOutput struct{}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package blueprint
|
package blueprint
|
||||||
|
|
||||||
import "osbuild-composer/internal/pipeline"
|
import "github.com/osbuild/osbuild-composer/internal/pipeline"
|
||||||
|
|
||||||
type vmdkOutput struct{}
|
type vmdkOutput struct{}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,12 +2,12 @@ package jobqueue
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
"github.com/osbuild/osbuild-composer/internal/pipeline"
|
||||||
|
"github.com/osbuild/osbuild-composer/internal/store"
|
||||||
|
"github.com/osbuild/osbuild-composer/internal/target"
|
||||||
"log"
|
"log"
|
||||||
"net"
|
"net"
|
||||||
"net/http"
|
"net/http"
|
||||||
"osbuild-composer/internal/pipeline"
|
|
||||||
"osbuild-composer/internal/store"
|
|
||||||
"osbuild-composer/internal/target"
|
|
||||||
|
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/julienschmidt/httprouter"
|
"github.com/julienschmidt/httprouter"
|
||||||
|
|
|
||||||
|
|
@ -10,9 +10,9 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"osbuild-composer/internal/blueprint"
|
"github.com/osbuild/osbuild-composer/internal/blueprint"
|
||||||
"osbuild-composer/internal/jobqueue"
|
"github.com/osbuild/osbuild-composer/internal/jobqueue"
|
||||||
"osbuild-composer/internal/store"
|
"github.com/osbuild/osbuild-composer/internal/store"
|
||||||
|
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -4,12 +4,12 @@ package store
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"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"
|
"io/ioutil"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"osbuild-composer/internal/blueprint"
|
|
||||||
"osbuild-composer/internal/pipeline"
|
|
||||||
"osbuild-composer/internal/target"
|
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"sort"
|
"sort"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
|
||||||
|
|
@ -13,9 +13,9 @@ import (
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/julienschmidt/httprouter"
|
"github.com/julienschmidt/httprouter"
|
||||||
|
|
||||||
"osbuild-composer/internal/blueprint"
|
"github.com/osbuild/osbuild-composer/internal/blueprint"
|
||||||
"osbuild-composer/internal/rpmmd"
|
"github.com/osbuild/osbuild-composer/internal/rpmmd"
|
||||||
"osbuild-composer/internal/store"
|
"github.com/osbuild/osbuild-composer/internal/store"
|
||||||
)
|
)
|
||||||
|
|
||||||
type API struct {
|
type API struct {
|
||||||
|
|
@ -681,8 +681,8 @@ func (api *API) composeStatusHandler(writer http.ResponseWriter, request *http.R
|
||||||
id, err := uuid.Parse(uuidString)
|
id, err := uuid.Parse(uuidString)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
statusResponseError(writer, http.StatusBadRequest, "invalid UUID")
|
statusResponseError(writer, http.StatusBadRequest, "invalid UUID")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
uuids = append(uuids, id)
|
uuids = append(uuids, id)
|
||||||
}
|
}
|
||||||
reply.UUIDs = api.store.ListQueue(uuids)
|
reply.UUIDs = api.store.ListQueue(uuids)
|
||||||
|
|
|
||||||
|
|
@ -13,9 +13,9 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"osbuild-composer/internal/rpmmd"
|
"github.com/osbuild/osbuild-composer/internal/rpmmd"
|
||||||
"osbuild-composer/internal/store"
|
"github.com/osbuild/osbuild-composer/internal/store"
|
||||||
"osbuild-composer/internal/weldr"
|
"github.com/osbuild/osbuild-composer/internal/weldr"
|
||||||
)
|
)
|
||||||
|
|
||||||
var repo = rpmmd.RepoConfig{
|
var repo = rpmmd.RepoConfig{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue