mirror of
https://github.com/rocky-linux/srpmproc.git
synced 2024-11-16 10:11:24 +00:00
Change go.mod path to Github
This commit is contained in:
parent
9f1e6d4caa
commit
85ff2d3a60
2
go.mod
2
go.mod
@ -1,4 +1,4 @@
|
|||||||
module git.rockylinux.org/release-engineering/public/srpmproc
|
module github.com/rocky-linux/srpmproc
|
||||||
|
|
||||||
go 1.15
|
go 1.15
|
||||||
|
|
||||||
|
@ -21,9 +21,9 @@
|
|||||||
package data
|
package data
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.rockylinux.org/release-engineering/public/srpmproc/internal/blob"
|
|
||||||
"github.com/go-git/go-billy/v5"
|
"github.com/go-git/go-billy/v5"
|
||||||
"github.com/go-git/go-git/v5/plumbing/transport/ssh"
|
"github.com/go-git/go-git/v5/plumbing/transport/ssh"
|
||||||
|
"github.com/rocky-linux/srpmproc/internal/blob"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ProcessData struct {
|
type ProcessData struct {
|
||||||
|
@ -23,12 +23,13 @@ package directives
|
|||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.rockylinux.org/release-engineering/public/srpmproc/internal/data"
|
|
||||||
srpmprocpb "git.rockylinux.org/release-engineering/public/srpmproc/pb"
|
|
||||||
"github.com/go-git/go-git/v5"
|
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
|
"github.com/go-git/go-git/v5"
|
||||||
|
"github.com/rocky-linux/srpmproc/internal/data"
|
||||||
|
srpmprocpb "github.com/rocky-linux/srpmproc/pb"
|
||||||
)
|
)
|
||||||
|
|
||||||
// returns right if not empty, else left
|
// returns right if not empty, else left
|
||||||
|
@ -23,9 +23,10 @@ package directives
|
|||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.rockylinux.org/release-engineering/public/srpmproc/internal/data"
|
|
||||||
srpmprocpb "git.rockylinux.org/release-engineering/public/srpmproc/pb"
|
|
||||||
"github.com/go-git/go-git/v5"
|
"github.com/go-git/go-git/v5"
|
||||||
|
"github.com/rocky-linux/srpmproc/internal/data"
|
||||||
|
srpmprocpb "github.com/rocky-linux/srpmproc/pb"
|
||||||
)
|
)
|
||||||
|
|
||||||
func del(cfg *srpmprocpb.Cfg, _ *data.ProcessData, _ *data.ModeData, _ *git.Worktree, pushTree *git.Worktree) error {
|
func del(cfg *srpmprocpb.Cfg, _ *data.ProcessData, _ *data.ModeData, _ *git.Worktree, pushTree *git.Worktree) error {
|
||||||
|
@ -22,13 +22,14 @@ package directives
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"git.rockylinux.org/release-engineering/public/srpmproc/internal/data"
|
|
||||||
srpmprocpb "git.rockylinux.org/release-engineering/public/srpmproc/pb"
|
|
||||||
"github.com/go-git/go-git/v5"
|
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"github.com/go-git/go-git/v5"
|
||||||
|
"github.com/rocky-linux/srpmproc/internal/data"
|
||||||
|
srpmprocpb "github.com/rocky-linux/srpmproc/pb"
|
||||||
)
|
)
|
||||||
|
|
||||||
func checkAddPrefix(file string) string {
|
func checkAddPrefix(file string) string {
|
||||||
|
@ -27,13 +27,14 @@ import (
|
|||||||
"crypto/sha256"
|
"crypto/sha256"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.rockylinux.org/release-engineering/public/srpmproc/internal/data"
|
|
||||||
srpmprocpb "git.rockylinux.org/release-engineering/public/srpmproc/pb"
|
|
||||||
"github.com/go-git/go-git/v5"
|
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/go-git/go-git/v5"
|
||||||
|
"github.com/rocky-linux/srpmproc/internal/data"
|
||||||
|
srpmprocpb "github.com/rocky-linux/srpmproc/pb"
|
||||||
)
|
)
|
||||||
|
|
||||||
func lookaside(cfg *srpmprocpb.Cfg, _ *data.ProcessData, md *data.ModeData, patchTree *git.Worktree, pushTree *git.Worktree) error {
|
func lookaside(cfg *srpmprocpb.Cfg, _ *data.ProcessData, md *data.ModeData, patchTree *git.Worktree, pushTree *git.Worktree) error {
|
||||||
|
@ -24,11 +24,12 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.rockylinux.org/release-engineering/public/srpmproc/internal/data"
|
"log"
|
||||||
srpmprocpb "git.rockylinux.org/release-engineering/public/srpmproc/pb"
|
|
||||||
"github.com/bluekeyes/go-gitdiff/gitdiff"
|
"github.com/bluekeyes/go-gitdiff/gitdiff"
|
||||||
"github.com/go-git/go-git/v5"
|
"github.com/go-git/go-git/v5"
|
||||||
"log"
|
"github.com/rocky-linux/srpmproc/internal/data"
|
||||||
|
srpmprocpb "github.com/rocky-linux/srpmproc/pb"
|
||||||
)
|
)
|
||||||
|
|
||||||
func patch(cfg *srpmprocpb.Cfg, _ *data.ProcessData, _ *data.ModeData, patchTree *git.Worktree, pushTree *git.Worktree) error {
|
func patch(cfg *srpmprocpb.Cfg, _ *data.ProcessData, _ *data.ModeData, patchTree *git.Worktree, pushTree *git.Worktree) error {
|
||||||
|
@ -23,11 +23,12 @@ package directives
|
|||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.rockylinux.org/release-engineering/public/srpmproc/internal/data"
|
|
||||||
srpmprocpb "git.rockylinux.org/release-engineering/public/srpmproc/pb"
|
|
||||||
"github.com/go-git/go-git/v5"
|
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
|
"github.com/go-git/go-git/v5"
|
||||||
|
"github.com/rocky-linux/srpmproc/internal/data"
|
||||||
|
srpmprocpb "github.com/rocky-linux/srpmproc/pb"
|
||||||
)
|
)
|
||||||
|
|
||||||
func replace(cfg *srpmprocpb.Cfg, pd *data.ProcessData, _ *data.ModeData, patchTree *git.Worktree, pushTree *git.Worktree) error {
|
func replace(cfg *srpmprocpb.Cfg, pd *data.ProcessData, _ *data.ModeData, patchTree *git.Worktree, pushTree *git.Worktree) error {
|
||||||
|
@ -23,9 +23,6 @@ package directives
|
|||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.rockylinux.org/release-engineering/public/srpmproc/internal/data"
|
|
||||||
srpmprocpb "git.rockylinux.org/release-engineering/public/srpmproc/pb"
|
|
||||||
"github.com/go-git/go-git/v5"
|
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"math"
|
"math"
|
||||||
"os"
|
"os"
|
||||||
@ -34,6 +31,10 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/go-git/go-git/v5"
|
||||||
|
"github.com/rocky-linux/srpmproc/internal/data"
|
||||||
|
srpmprocpb "github.com/rocky-linux/srpmproc/pb"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -22,13 +22,6 @@ package internal
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.rockylinux.org/release-engineering/public/srpmproc/internal/data"
|
|
||||||
"github.com/go-git/go-billy/v5/memfs"
|
|
||||||
"github.com/go-git/go-git/v5"
|
|
||||||
"github.com/go-git/go-git/v5/config"
|
|
||||||
"github.com/go-git/go-git/v5/plumbing"
|
|
||||||
"github.com/go-git/go-git/v5/plumbing/object"
|
|
||||||
"github.com/go-git/go-git/v5/storage/memory"
|
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
@ -36,6 +29,14 @@ import (
|
|||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/go-git/go-billy/v5/memfs"
|
||||||
|
"github.com/go-git/go-git/v5"
|
||||||
|
"github.com/go-git/go-git/v5/config"
|
||||||
|
"github.com/go-git/go-git/v5/plumbing"
|
||||||
|
"github.com/go-git/go-git/v5/plumbing/object"
|
||||||
|
"github.com/go-git/go-git/v5/storage/memory"
|
||||||
|
"github.com/rocky-linux/srpmproc/internal/data"
|
||||||
)
|
)
|
||||||
|
|
||||||
type remoteTarget struct {
|
type remoteTarget struct {
|
||||||
|
@ -22,21 +22,22 @@ package internal
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.rockylinux.org/release-engineering/public/srpmproc/internal/data"
|
|
||||||
"git.rockylinux.org/release-engineering/public/srpmproc/internal/directives"
|
|
||||||
"git.rockylinux.org/release-engineering/public/srpmproc/modulemd"
|
|
||||||
srpmprocpb "git.rockylinux.org/release-engineering/public/srpmproc/pb"
|
|
||||||
"github.com/go-git/go-billy/v5/memfs"
|
|
||||||
"github.com/go-git/go-git/v5"
|
|
||||||
"github.com/go-git/go-git/v5/config"
|
|
||||||
"github.com/go-git/go-git/v5/plumbing"
|
|
||||||
"github.com/go-git/go-git/v5/storage/memory"
|
|
||||||
"google.golang.org/protobuf/encoding/prototext"
|
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"log"
|
"log"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/go-git/go-billy/v5/memfs"
|
||||||
|
"github.com/go-git/go-git/v5"
|
||||||
|
"github.com/go-git/go-git/v5/config"
|
||||||
|
"github.com/go-git/go-git/v5/plumbing"
|
||||||
|
"github.com/go-git/go-git/v5/storage/memory"
|
||||||
|
"github.com/rocky-linux/srpmproc/internal/data"
|
||||||
|
"github.com/rocky-linux/srpmproc/internal/directives"
|
||||||
|
"github.com/rocky-linux/srpmproc/modulemd"
|
||||||
|
srpmprocpb "github.com/rocky-linux/srpmproc/pb"
|
||||||
|
"google.golang.org/protobuf/encoding/prototext"
|
||||||
)
|
)
|
||||||
|
|
||||||
func cfgPatches(pd *data.ProcessData, md *data.ModeData, patchTree *git.Worktree, pushTree *git.Worktree) {
|
func cfgPatches(pd *data.ProcessData, md *data.ModeData, patchTree *git.Worktree, pushTree *git.Worktree) {
|
||||||
|
@ -24,13 +24,6 @@ import (
|
|||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.rockylinux.org/release-engineering/public/srpmproc/internal/data"
|
|
||||||
"github.com/go-git/go-billy/v5/memfs"
|
|
||||||
"github.com/go-git/go-git/v5"
|
|
||||||
"github.com/go-git/go-git/v5/config"
|
|
||||||
"github.com/go-git/go-git/v5/plumbing"
|
|
||||||
"github.com/go-git/go-git/v5/plumbing/object"
|
|
||||||
"github.com/go-git/go-git/v5/storage/memory"
|
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
@ -38,6 +31,14 @@ import (
|
|||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/go-git/go-billy/v5/memfs"
|
||||||
|
"github.com/go-git/go-git/v5"
|
||||||
|
"github.com/go-git/go-git/v5/config"
|
||||||
|
"github.com/go-git/go-git/v5/plumbing"
|
||||||
|
"github.com/go-git/go-git/v5/plumbing/object"
|
||||||
|
"github.com/go-git/go-git/v5/storage/memory"
|
||||||
|
"github.com/rocky-linux/srpmproc/internal/data"
|
||||||
)
|
)
|
||||||
|
|
||||||
var tagImportRegex *regexp.Regexp
|
var tagImportRegex *regexp.Regexp
|
||||||
|
@ -24,12 +24,6 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"crypto/sha256"
|
"crypto/sha256"
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.rockylinux.org/release-engineering/public/srpmproc/internal/data"
|
|
||||||
"github.com/cavaliercoder/go-cpio"
|
|
||||||
"github.com/cavaliercoder/go-rpm"
|
|
||||||
"github.com/go-git/go-billy/v5/memfs"
|
|
||||||
"github.com/go-git/go-git/v5"
|
|
||||||
"github.com/go-git/go-git/v5/storage/memory"
|
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"log"
|
"log"
|
||||||
@ -37,6 +31,13 @@ import (
|
|||||||
"os/exec"
|
"os/exec"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"github.com/cavaliercoder/go-cpio"
|
||||||
|
"github.com/cavaliercoder/go-rpm"
|
||||||
|
"github.com/go-git/go-billy/v5/memfs"
|
||||||
|
"github.com/go-git/go-git/v5"
|
||||||
|
"github.com/go-git/go-git/v5/storage/memory"
|
||||||
|
"github.com/rocky-linux/srpmproc/internal/data"
|
||||||
)
|
)
|
||||||
|
|
||||||
type SrpmMode struct{}
|
type SrpmMode struct{}
|
||||||
|
11
pb/cfg.pb.go
11
pb/cfg.pb.go
@ -1192,12 +1192,11 @@ var file_cfg_proto_rawDesc = []byte{
|
|||||||
0x65, 0x63, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x0a, 0x73, 0x70, 0x65, 0x63, 0x43, 0x68,
|
0x65, 0x63, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x0a, 0x73, 0x70, 0x65, 0x63, 0x43, 0x68,
|
||||||
0x61, 0x6e, 0x67, 0x65, 0x12, 0x25, 0x0a, 0x05, 0x70, 0x61, 0x74, 0x63, 0x68, 0x18, 0x06, 0x20,
|
0x61, 0x6e, 0x67, 0x65, 0x12, 0x25, 0x0a, 0x05, 0x70, 0x61, 0x74, 0x63, 0x68, 0x18, 0x06, 0x20,
|
||||||
0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x73, 0x72, 0x70, 0x6d, 0x70, 0x72, 0x6f, 0x63, 0x2e, 0x50,
|
0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x73, 0x72, 0x70, 0x6d, 0x70, 0x72, 0x6f, 0x63, 0x2e, 0x50,
|
||||||
0x61, 0x74, 0x63, 0x68, 0x52, 0x05, 0x70, 0x61, 0x74, 0x63, 0x68, 0x42, 0x46, 0x5a, 0x44, 0x67,
|
0x61, 0x74, 0x63, 0x68, 0x52, 0x05, 0x70, 0x61, 0x74, 0x63, 0x68, 0x42, 0x2f, 0x5a, 0x2d, 0x67,
|
||||||
0x69, 0x74, 0x2e, 0x72, 0x6f, 0x63, 0x6b, 0x79, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2e, 0x6f, 0x72,
|
0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x6f, 0x63, 0x6b, 0x79, 0x2d,
|
||||||
0x67, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2d, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65,
|
0x6c, 0x69, 0x6e, 0x75, 0x78, 0x2f, 0x73, 0x72, 0x70, 0x6d, 0x70, 0x72, 0x6f, 0x63, 0x2f, 0x70,
|
||||||
0x65, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2f, 0x73, 0x72, 0x70,
|
0x62, 0x3b, 0x73, 0x72, 0x70, 0x6d, 0x70, 0x72, 0x6f, 0x63, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72,
|
||||||
0x6d, 0x70, 0x72, 0x6f, 0x63, 0x2f, 0x70, 0x62, 0x3b, 0x73, 0x72, 0x70, 0x6d, 0x70, 0x72, 0x6f,
|
0x6f, 0x74, 0x6f, 0x33,
|
||||||
0x63, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
|
|
||||||
option go_package = "git.rockylinux.org/release-engineering/public/srpmproc/pb;srpmprocpb";
|
option go_package = "github.com/rocky-linux/srpmproc/pb;srpmprocpb";
|
||||||
|
|
||||||
package srpmproc;
|
package srpmproc;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user