feat: rename module
This commit is contained in:
parent
2a55fe1c3d
commit
b40072a485
|
@ -47,7 +47,7 @@ go test -coverprofile cover.out -v ./...
|
|||
...
|
||||
PASS
|
||||
coverage: 74.0% of statements
|
||||
ok focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/cmd/joj3 2.290s coverage: 74.0% of statements
|
||||
ok github.com/joint-online-judge/JOJ3/cmd/joj3 2.290s coverage: 74.0% of statements
|
||||
```
|
||||
|
||||
### For developers
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"log/slog"
|
||||
"os"
|
||||
|
||||
"focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/pkg/healthcheck"
|
||||
"github.com/joint-online-judge/JOJ3/pkg/healthcheck"
|
||||
)
|
||||
|
||||
// parseMultiValueFlag parses a multi-value command-line flag and appends its values to the provided slice.
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"os"
|
||||
"regexp"
|
||||
|
||||
"focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
|
||||
"github.com/joint-online-judge/JOJ3/internal/stage"
|
||||
"github.com/koding/multiconfig"
|
||||
)
|
||||
|
||||
|
|
|
@ -6,9 +6,9 @@ import (
|
|||
"log/slog"
|
||||
"os"
|
||||
|
||||
"focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/executors"
|
||||
_ "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/parsers"
|
||||
"focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
|
||||
"github.com/joint-online-judge/JOJ3/internal/executors"
|
||||
_ "github.com/joint-online-judge/JOJ3/internal/parsers"
|
||||
"github.com/joint-online-judge/JOJ3/internal/stage"
|
||||
|
||||
"github.com/go-git/go-git/v5"
|
||||
"github.com/jinzhu/copier"
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"strings"
|
||||
"testing"
|
||||
|
||||
"focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
|
||||
"github.com/joint-online-judge/JOJ3/internal/stage"
|
||||
)
|
||||
|
||||
func compareStageResults(t *testing.T, actual, expected []stage.StageResult, regex bool) {
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"fmt"
|
||||
"os"
|
||||
|
||||
"focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/pkg/sample"
|
||||
"github.com/joint-online-judge/JOJ3/pkg/sample"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
|||
module focs.ji.sjtu.edu.cn/git/JOJ/JOJ3
|
||||
module github.com/joint-online-judge/JOJ3
|
||||
|
||||
go 1.22.1
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package executors
|
||||
|
||||
import (
|
||||
_ "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/executors/dummy"
|
||||
"focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/executors/sandbox"
|
||||
_ "github.com/joint-online-judge/JOJ3/internal/executors/dummy"
|
||||
"github.com/joint-online-judge/JOJ3/internal/executors/sandbox"
|
||||
)
|
||||
|
||||
// this file does nothing but imports to ensure all the init() functions
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package dummy
|
||||
|
||||
import (
|
||||
"focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
|
||||
"github.com/criyle/go-judge/envexec"
|
||||
"github.com/joint-online-judge/JOJ3/internal/stage"
|
||||
)
|
||||
|
||||
type Dummy struct{}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package dummy
|
||||
|
||||
import "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
|
||||
import "github.com/joint-online-judge/JOJ3/internal/stage"
|
||||
|
||||
var name = "dummy"
|
||||
|
||||
|
|
|
@ -6,8 +6,8 @@ import (
|
|||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
|
||||
"github.com/criyle/go-judge/pb"
|
||||
"github.com/joint-online-judge/JOJ3/internal/stage"
|
||||
)
|
||||
|
||||
// copied from https://github.com/criyle/go-judge/blob/master/cmd/go-judge-shell/grpc.go
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"fmt"
|
||||
"log/slog"
|
||||
|
||||
"focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
|
||||
"github.com/criyle/go-judge/pb"
|
||||
"github.com/joint-online-judge/JOJ3/internal/stage"
|
||||
)
|
||||
|
||||
type Sandbox struct {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package sandbox
|
||||
|
||||
import (
|
||||
"focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
|
||||
"github.com/joint-online-judge/JOJ3/internal/stage"
|
||||
)
|
||||
|
||||
var name = "sandbox"
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
package parsers
|
||||
|
||||
import (
|
||||
_ "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/parsers/clangtidy"
|
||||
_ "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/parsers/cppcheck"
|
||||
_ "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/parsers/cpplint"
|
||||
_ "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/parsers/diff"
|
||||
_ "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/parsers/dummy"
|
||||
_ "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/parsers/healthcheck"
|
||||
_ "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/parsers/keyword"
|
||||
_ "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/parsers/resultstatus"
|
||||
_ "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/parsers/sample"
|
||||
_ "github.com/joint-online-judge/JOJ3/internal/parsers/clangtidy"
|
||||
_ "github.com/joint-online-judge/JOJ3/internal/parsers/cppcheck"
|
||||
_ "github.com/joint-online-judge/JOJ3/internal/parsers/cpplint"
|
||||
_ "github.com/joint-online-judge/JOJ3/internal/parsers/diff"
|
||||
_ "github.com/joint-online-judge/JOJ3/internal/parsers/dummy"
|
||||
_ "github.com/joint-online-judge/JOJ3/internal/parsers/healthcheck"
|
||||
_ "github.com/joint-online-judge/JOJ3/internal/parsers/keyword"
|
||||
_ "github.com/joint-online-judge/JOJ3/internal/parsers/resultstatus"
|
||||
_ "github.com/joint-online-judge/JOJ3/internal/parsers/sample"
|
||||
)
|
||||
|
||||
// this file does nothing but imports to ensure all the init() functions
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package clangtidy
|
||||
|
||||
import "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
|
||||
import "github.com/joint-online-judge/JOJ3/internal/stage"
|
||||
|
||||
var name = "clangtidy"
|
||||
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"fmt"
|
||||
"strings"
|
||||
|
||||
"focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
|
||||
"github.com/criyle/go-judge/envexec"
|
||||
"github.com/joint-online-judge/JOJ3/internal/stage"
|
||||
)
|
||||
|
||||
type Match struct {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package cppcheck
|
||||
|
||||
import "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
|
||||
import "github.com/joint-online-judge/JOJ3/internal/stage"
|
||||
|
||||
var name = "cppcheck"
|
||||
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"fmt"
|
||||
"strings"
|
||||
|
||||
"focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
|
||||
"github.com/criyle/go-judge/envexec"
|
||||
"github.com/joint-online-judge/JOJ3/internal/stage"
|
||||
)
|
||||
|
||||
type CppCheck struct{}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package cpplint
|
||||
|
||||
import "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
|
||||
import "github.com/joint-online-judge/JOJ3/internal/stage"
|
||||
|
||||
var name = "cpplint"
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"regexp"
|
||||
"strconv"
|
||||
|
||||
"focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
|
||||
"github.com/joint-online-judge/JOJ3/internal/stage"
|
||||
)
|
||||
|
||||
type Conf struct {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package diff
|
||||
|
||||
import "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
|
||||
import "github.com/joint-online-judge/JOJ3/internal/stage"
|
||||
|
||||
var name = "diff"
|
||||
|
||||
|
|
|
@ -7,8 +7,8 @@ import (
|
|||
"strings"
|
||||
"unicode"
|
||||
|
||||
"focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
|
||||
"github.com/criyle/go-judge/envexec"
|
||||
"github.com/joint-online-judge/JOJ3/internal/stage"
|
||||
)
|
||||
|
||||
// operation represents the type of edit operation.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package dummy
|
||||
|
||||
import "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
|
||||
import "github.com/joint-online-judge/JOJ3/internal/stage"
|
||||
|
||||
var name = "dummy"
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package dummy
|
||||
|
||||
import (
|
||||
"focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
|
||||
"github.com/joint-online-judge/JOJ3/internal/stage"
|
||||
)
|
||||
|
||||
type Conf struct {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package healthcheck
|
||||
|
||||
import "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
|
||||
import "github.com/joint-online-judge/JOJ3/internal/stage"
|
||||
|
||||
var name = "healthcheck"
|
||||
|
||||
|
|
|
@ -3,8 +3,8 @@ package healthcheck
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
|
||||
"github.com/criyle/go-judge/envexec"
|
||||
"github.com/joint-online-judge/JOJ3/internal/stage"
|
||||
)
|
||||
|
||||
type Healthcheck struct{}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package keyword
|
||||
|
||||
import "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
|
||||
import "github.com/joint-online-judge/JOJ3/internal/stage"
|
||||
|
||||
var name = "keyword"
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"fmt"
|
||||
"strings"
|
||||
|
||||
"focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
|
||||
"github.com/joint-online-judge/JOJ3/internal/stage"
|
||||
)
|
||||
|
||||
type Match struct {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package resultstatus
|
||||
|
||||
import "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
|
||||
import "github.com/joint-online-judge/JOJ3/internal/stage"
|
||||
|
||||
var name = "result-status"
|
||||
|
||||
|
|
|
@ -3,8 +3,8 @@ package resultstatus
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
|
||||
"github.com/criyle/go-judge/envexec"
|
||||
"github.com/joint-online-judge/JOJ3/internal/stage"
|
||||
)
|
||||
|
||||
type Conf struct {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package sample
|
||||
|
||||
import "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
|
||||
import "github.com/joint-online-judge/JOJ3/internal/stage"
|
||||
|
||||
var name = "sample"
|
||||
|
||||
|
|
|
@ -4,9 +4,9 @@ import (
|
|||
"encoding/json"
|
||||
"fmt"
|
||||
|
||||
"focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
|
||||
"focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/pkg/sample"
|
||||
"github.com/criyle/go-judge/envexec"
|
||||
"github.com/joint-online-judge/JOJ3/internal/stage"
|
||||
"github.com/joint-online-judge/JOJ3/pkg/sample"
|
||||
)
|
||||
|
||||
type Conf struct {
|
||||
|
|
Loading…
Reference in New Issue
Block a user