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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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