feat: rename module
Some checks failed
build-image / create-empty-commit (push) Failing after 4s
checks / build (push) Successful in 1m20s

This commit is contained in:
张泊明518370910136 2024-09-30 17:38:40 -04:00
parent 4c00904f25
commit a9a829da3f
GPG Key ID: D47306D7062CDA9D
34 changed files with 63 additions and 63 deletions

View File

@ -19,7 +19,7 @@ jobs:
chown -R root:root /root/.ssh chown -R root:root /root/.ssh
- name: Clone, Commit and Push - name: Clone, Commit and Push
run: | run: |
git clone ssh://git@focs.ji.sjtu.edu.cn:2222/FOCS-dev/runner-images.git runner-images git clone ssh://git@focs.ji.sjtu.edu.cn:2222/JOJ3/runner-images.git runner-images
cd runner-images cd runner-images
git commit --allow-empty -m "chore: trigger gitea actions by JOJ3" git commit --allow-empty -m "chore: trigger gitea actions by JOJ3"
git push git push

36
.gitmodules vendored
View File

@ -1,72 +1,72 @@
[submodule "examples/diff/basic"] [submodule "examples/diff/basic"]
path = examples/diff/basic path = examples/diff/basic
url = ssh://git@focs.ji.sjtu.edu.cn:2222/FOCS-dev/JOJ3-examples.git url = ssh://git@focs.ji.sjtu.edu.cn:2222/JOJ/JOJ3-examples.git
branch = diff/basic branch = diff/basic
[submodule "examples/diff/complex"] [submodule "examples/diff/complex"]
path = examples/diff/complex path = examples/diff/complex
url = ssh://git@focs.ji.sjtu.edu.cn:2222/FOCS-dev/JOJ3-examples.git url = ssh://git@focs.ji.sjtu.edu.cn:2222/JOJ/JOJ3-examples.git
branch = diff/complex branch = diff/complex
[submodule "examples/cpplint/sillycode"] [submodule "examples/cpplint/sillycode"]
path = examples/cpplint/sillycode path = examples/cpplint/sillycode
url = ssh://git@focs.ji.sjtu.edu.cn:2222/FOCS-dev/JOJ3-examples.git url = ssh://git@focs.ji.sjtu.edu.cn:2222/JOJ/JOJ3-examples.git
branch = cpplint/sillycode branch = cpplint/sillycode
[submodule "examples/compile/success"] [submodule "examples/compile/success"]
path = examples/compile/success path = examples/compile/success
url = ssh://git@focs.ji.sjtu.edu.cn:2222/FOCS-dev/JOJ3-examples.git url = ssh://git@focs.ji.sjtu.edu.cn:2222/JOJ/JOJ3-examples.git
branch = compile/success branch = compile/success
[submodule "examples/compile/error"] [submodule "examples/compile/error"]
path = examples/compile/error path = examples/compile/error
url = ssh://git@focs.ji.sjtu.edu.cn:2222/FOCS-dev/JOJ3-examples.git url = ssh://git@focs.ji.sjtu.edu.cn:2222/JOJ/JOJ3-examples.git
branch = compile/error branch = compile/error
[submodule "examples/sample/success"] [submodule "examples/sample/success"]
path = examples/sample/success path = examples/sample/success
url = ssh://git@focs.ji.sjtu.edu.cn:2222/FOCS-dev/JOJ3-examples.git url = ssh://git@focs.ji.sjtu.edu.cn:2222/JOJ/JOJ3-examples.git
branch = sample/success branch = sample/success
[submodule "examples/sample/error"] [submodule "examples/sample/error"]
path = examples/sample/error path = examples/sample/error
url = ssh://git@focs.ji.sjtu.edu.cn:2222/FOCS-dev/JOJ3-examples.git url = ssh://git@focs.ji.sjtu.edu.cn:2222/JOJ/JOJ3-examples.git
branch = sample/error branch = sample/error
[submodule "examples/keyword/cpplint/sillycode"] [submodule "examples/keyword/cpplint/sillycode"]
path = examples/keyword/cpplint/sillycode path = examples/keyword/cpplint/sillycode
url = ssh://git@focs.ji.sjtu.edu.cn:2222/FOCS-dev/JOJ3-examples.git url = ssh://git@focs.ji.sjtu.edu.cn:2222/JOJ/JOJ3-examples.git
branch = keyword/cpplint/sillycode branch = keyword/cpplint/sillycode
[submodule "examples/clangtidy/sillycode"] [submodule "examples/clangtidy/sillycode"]
path = examples/clangtidy/sillycode path = examples/clangtidy/sillycode
url = ssh://git@focs.ji.sjtu.edu.cn:2222/FOCS-dev/JOJ3-examples.git url = ssh://git@focs.ji.sjtu.edu.cn:2222/JOJ/JOJ3-examples.git
branch = clangtidy/sillycode branch = clangtidy/sillycode
[submodule "examples/keyword/clangtidy/sillycode"] [submodule "examples/keyword/clangtidy/sillycode"]
path = examples/keyword/clangtidy/sillycode path = examples/keyword/clangtidy/sillycode
url = ssh://git@focs.ji.sjtu.edu.cn:2222/FOCS-dev/JOJ3-examples.git url = ssh://git@focs.ji.sjtu.edu.cn:2222/JOJ/JOJ3-examples.git
branch = keyword/clangtidy/sillycode branch = keyword/clangtidy/sillycode
[submodule "examples/healthcheck/asciifile"] [submodule "examples/healthcheck/asciifile"]
path = examples/healthcheck/asciifile path = examples/healthcheck/asciifile
url = ssh://git@focs.ji.sjtu.edu.cn:2222/FOCS-dev/JOJ3-examples.git url = ssh://git@focs.ji.sjtu.edu.cn:2222/JOJ/JOJ3-examples.git
branch = healthcheck/asciifile branch = healthcheck/asciifile
[submodule "examples/healthcheck/asciimsg"] [submodule "examples/healthcheck/asciimsg"]
path = examples/healthcheck/asciimsg path = examples/healthcheck/asciimsg
url = ssh://git@focs.ji.sjtu.edu.cn:2222/FOCS-dev/JOJ3-examples.git url = ssh://git@focs.ji.sjtu.edu.cn:2222/JOJ/JOJ3-examples.git
branch = healthcheck/asciimsg branch = healthcheck/asciimsg
[submodule "examples/healthcheck/forbiddenfile"] [submodule "examples/healthcheck/forbiddenfile"]
path = examples/healthcheck/forbiddenfile path = examples/healthcheck/forbiddenfile
url = ssh://git@focs.ji.sjtu.edu.cn:2222/FOCS-dev/JOJ3-examples.git url = ssh://git@focs.ji.sjtu.edu.cn:2222/JOJ/JOJ3-examples.git
branch = healthcheck/forbiddenfile branch = healthcheck/forbiddenfile
[submodule "examples/healthcheck/meta"] [submodule "examples/healthcheck/meta"]
path = examples/healthcheck/meta path = examples/healthcheck/meta
url = ssh://git@focs.ji.sjtu.edu.cn:2222/FOCS-dev/JOJ3-examples.git url = ssh://git@focs.ji.sjtu.edu.cn:2222/JOJ/JOJ3-examples.git
branch = healthcheck/meta branch = healthcheck/meta
[submodule "examples/healthcheck/release"] [submodule "examples/healthcheck/release"]
path = examples/healthcheck/release path = examples/healthcheck/release
url = ssh://git@focs.ji.sjtu.edu.cn:2222/FOCS-dev/JOJ3-examples.git url = ssh://git@focs.ji.sjtu.edu.cn:2222/JOJ/JOJ3-examples.git
branch = healthcheck/release branch = healthcheck/release
[submodule "examples/healthcheck/reposize"] [submodule "examples/healthcheck/reposize"]
path = examples/healthcheck/reposize path = examples/healthcheck/reposize
url = ssh://git@focs.ji.sjtu.edu.cn:2222/FOCS-dev/JOJ3-examples.git url = ssh://git@focs.ji.sjtu.edu.cn:2222/JOJ/JOJ3-examples.git
branch = healthcheck/reposize branch = healthcheck/reposize
[submodule "examples/healthcheck/repoverify"] [submodule "examples/healthcheck/repoverify"]
path = examples/healthcheck/repoverify path = examples/healthcheck/repoverify
url = ssh://git@focs.ji.sjtu.edu.cn:2222/FOCS-dev/JOJ3-examples.git url = ssh://git@focs.ji.sjtu.edu.cn:2222/JOJ/JOJ3-examples.git
branch = healthcheck/repoverify branch = healthcheck/repoverify
[submodule "examples/cppcheck/sillycode"] [submodule "examples/cppcheck/sillycode"]
path = examples/cppcheck/sillycode path = examples/cppcheck/sillycode
url = ssh://git@focs.ji.sjtu.edu.cn:2222/FOCS-dev/JOJ3-examples.git url = ssh://git@focs.ji.sjtu.edu.cn:2222/JOJ/JOJ3-examples.git
branch = cppcheck/sillycode branch = cppcheck/sillycode

View File

@ -45,7 +45,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/FOCS-dev/JOJ3/cmd/joj3 2.290s coverage: 74.0% of statements ok focs.ji.sjtu.edu.cn/git/JOJ/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/FOCS-dev/JOJ3/pkg/healthcheck" "focs.ji.sjtu.edu.cn/git/JOJ/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/FOCS-dev/JOJ3/internal/stage" "focs.ji.sjtu.edu.cn/git/JOJ/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/FOCS-dev/JOJ3/internal/executors" "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/executors"
_ "focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/parsers" _ "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/parsers"
"focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/stage" "focs.ji.sjtu.edu.cn/git/JOJ/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/FOCS-dev/JOJ3/internal/stage" "focs.ji.sjtu.edu.cn/git/JOJ/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/FOCS-dev/JOJ3/pkg/sample" "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/pkg/sample"
) )
func main() { func main() {

2
go.mod
View File

@ -1,4 +1,4 @@
module focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3 module focs.ji.sjtu.edu.cn/git/JOJ/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/FOCS-dev/JOJ3/internal/executors/dummy" _ "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/executors/dummy"
"focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/executors/sandbox" "focs.ji.sjtu.edu.cn/git/JOJ/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,7 +1,7 @@
package dummy package dummy
import ( import (
"focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/stage" "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
"github.com/criyle/go-judge/envexec" "github.com/criyle/go-judge/envexec"
) )

View File

@ -1,6 +1,6 @@
package dummy package dummy
import "focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/stage" import "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
var name = "dummy" var name = "dummy"

View File

@ -6,7 +6,7 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/stage" "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
"github.com/criyle/go-judge/pb" "github.com/criyle/go-judge/pb"
) )

View File

@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"log/slog" "log/slog"
"focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/stage" "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
"github.com/criyle/go-judge/pb" "github.com/criyle/go-judge/pb"
) )

View File

@ -1,7 +1,7 @@
package sandbox package sandbox
import ( import (
"focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/stage" "focs.ji.sjtu.edu.cn/git/JOJ/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/FOCS-dev/JOJ3/internal/parsers/clangtidy" _ "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/parsers/clangtidy"
_ "focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/parsers/cppcheck" _ "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/parsers/cppcheck"
_ "focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/parsers/cpplint" _ "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/parsers/cpplint"
_ "focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/parsers/diff" _ "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/parsers/diff"
_ "focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/parsers/dummy" _ "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/parsers/dummy"
_ "focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/parsers/healthcheck" _ "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/parsers/healthcheck"
_ "focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/parsers/keyword" _ "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/parsers/keyword"
_ "focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/parsers/resultstatus" _ "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/parsers/resultstatus"
_ "focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/parsers/sample" _ "focs.ji.sjtu.edu.cn/git/JOJ/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/FOCS-dev/JOJ3/internal/stage" import "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
var name = "clangtidy" var name = "clangtidy"

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"strings" "strings"
"focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/stage" "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
"github.com/criyle/go-judge/envexec" "github.com/criyle/go-judge/envexec"
) )

View File

@ -1,6 +1,6 @@
package cppcheck package cppcheck
import "focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/stage" import "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
var name = "cppcheck" var name = "cppcheck"

View File

@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"strings" "strings"
"focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/stage" "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
"github.com/criyle/go-judge/envexec" "github.com/criyle/go-judge/envexec"
) )

View File

@ -1,6 +1,6 @@
package cpplint package cpplint
import "focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/stage" import "focs.ji.sjtu.edu.cn/git/JOJ/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/FOCS-dev/JOJ3/internal/stage" "focs.ji.sjtu.edu.cn/git/JOJ/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/FOCS-dev/JOJ3/internal/stage" import "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
var name = "diff" var name = "diff"

View File

@ -7,7 +7,7 @@ import (
"strings" "strings"
"unicode" "unicode"
"focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/stage" "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
"github.com/criyle/go-judge/envexec" "github.com/criyle/go-judge/envexec"
) )

View File

@ -1,6 +1,6 @@
package dummy package dummy
import "focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/stage" import "focs.ji.sjtu.edu.cn/git/JOJ/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/FOCS-dev/JOJ3/internal/stage" "focs.ji.sjtu.edu.cn/git/JOJ/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/FOCS-dev/JOJ3/internal/stage" import "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
var name = "healthcheck" var name = "healthcheck"

View File

@ -3,7 +3,7 @@ package healthcheck
import ( import (
"fmt" "fmt"
"focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/stage" "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
"github.com/criyle/go-judge/envexec" "github.com/criyle/go-judge/envexec"
) )

View File

@ -1,6 +1,6 @@
package keyword package keyword
import "focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/stage" import "focs.ji.sjtu.edu.cn/git/JOJ/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/FOCS-dev/JOJ3/internal/stage" "focs.ji.sjtu.edu.cn/git/JOJ/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/FOCS-dev/JOJ3/internal/stage" import "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
var name = "result-status" var name = "result-status"

View File

@ -3,7 +3,7 @@ package resultstatus
import ( import (
"fmt" "fmt"
"focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/stage" "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
"github.com/criyle/go-judge/envexec" "github.com/criyle/go-judge/envexec"
) )

View File

@ -1,6 +1,6 @@
package sample package sample
import "focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/stage" import "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
var name = "sample" var name = "sample"

View File

@ -4,8 +4,8 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/internal/stage" "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/internal/stage"
"focs.ji.sjtu.edu.cn/git/FOCS-dev/JOJ3/pkg/sample" "focs.ji.sjtu.edu.cn/git/JOJ/JOJ3/pkg/sample"
"github.com/criyle/go-judge/envexec" "github.com/criyle/go-judge/envexec"
) )