feat: rename module
All checks were successful
build-image / create-empty-commit (push) Successful in 5s
checks / build (push) Successful in 1m19s

This commit is contained in:
张泊明518370910136 2024-09-30 22:04:18 -04:00
parent 2a55fe1c3d
commit b40072a485
GPG Key ID: D47306D7062CDA9D
32 changed files with 44 additions and 44 deletions

View File

@ -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

View File

@ -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.

View File

@ -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"
)

View File

@ -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"

View File

@ -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) {

View File

@ -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
View File

@ -1,4 +1,4 @@
module focs.ji.sjtu.edu.cn/git/JOJ/JOJ3
module github.com/joint-online-judge/JOJ3
go 1.22.1

View File

@ -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

View File

@ -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{}

View File

@ -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"

View File

@ -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

View File

@ -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 {

View File

@ -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"

View File

@ -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

View File

@ -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"

View File

@ -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 {

View File

@ -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"

View File

@ -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{}

View File

@ -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"

View File

@ -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 {

View File

@ -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"

View File

@ -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.

View File

@ -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"

View File

@ -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 {

View File

@ -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"

View File

@ -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{}

View File

@ -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"

View File

@ -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 {

View File

@ -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"

View File

@ -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 {

View File

@ -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"

View File

@ -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 {