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