From 5d75f1f7fc74c6d6eb9fc4044a36c3849e03a464 Mon Sep 17 00:00:00 2001 From: Sergey Paramoshkin Date: Tue, 3 Oct 2023 20:25:41 +0300 Subject: [PATCH] update mod && fix links --- CONTRIBUTING.md | 4 ++-- README.md | 2 +- allocs/README.md | 4 ++-- batcher/batcher.go | 2 +- batcher/batcher_test.go | 2 +- blowfish/blowfish_test.go | 2 +- ciletters/README.md | 2 +- ciletters/letter_test.go | 10 +++++----- coverme/app/app.go | 4 ++-- coverme/client/client.go | 2 +- coverme/main.go | 4 ++-- dao/dao_test.go | 2 +- digitalclock/main_test.go | 4 ++-- distbuild/disttest/fixture.go | 14 +++++++------- distbuild/disttest/recorder.go | 2 +- distbuild/disttest/single_worker_test.go | 2 +- distbuild/disttest/three_workers_test.go | 2 +- distbuild/pkg/api/build.go | 2 +- distbuild/pkg/api/build_client.go | 2 +- distbuild/pkg/api/build_test.go | 6 +++--- distbuild/pkg/api/heartbeat.go | 2 +- distbuild/pkg/api/heartbeat_test.go | 6 +++--- distbuild/pkg/api/mock/heartbeat.go | 4 ++-- distbuild/pkg/api/mock/mock.go | 6 +++--- distbuild/pkg/artifact/cache.go | 2 +- distbuild/pkg/artifact/cache_test.go | 4 ++-- distbuild/pkg/artifact/client.go | 2 +- distbuild/pkg/artifact/client_test.go | 4 ++-- distbuild/pkg/client/build.go | 2 +- distbuild/pkg/dist/coordinator.go | 4 ++-- distbuild/pkg/filecache/client.go | 2 +- distbuild/pkg/filecache/client_test.go | 4 ++-- distbuild/pkg/filecache/filecache.go | 4 ++-- distbuild/pkg/filecache/filecache_test.go | 4 ++-- distbuild/pkg/scheduler/scheduler.go | 4 ++-- distbuild/pkg/tarstream/stream_test.go | 2 +- distbuild/pkg/worker/worker.go | 6 +++--- docs/allocation_profiling.md | 6 +++--- docs/gitfame_review_comments.md | 8 ++++---- externalsort/sort_test.go | 2 +- fetchall/main_test.go | 4 ++-- fileleak/fileleak_test.go | 4 ++-- firewall/cmd/firewall/main_test.go | 4 ++-- genericsum/genericsum_test.go | 2 +- gitfame/test/integration/gitfame_test.go | 4 ++-- go.mod | 2 +- gossip/gossip.go | 3 +-- gossip/gossip_test.go | 4 ++-- gossip/meshpb/protocol.proto | 2 +- gzep/README.md | 4 ++-- gzep/encode_test.go | 4 ++-- illegal/field_test.go | 4 ++-- illegal/string_test.go | 2 +- iprange/example_test.go | 2 +- keylock/keylock_test.go | 2 +- lectures/00-intro/lecture.slide | 2 +- lectures/04-testing/gomock/mock.go | 2 +- lectures/04-testing/lecture.slide | 8 ++++---- lectures/go.mod | 2 +- ledger/ledger_test.go | 4 ++-- middleware/auth/auth_test.go | 2 +- middleware/httpgauge/httpgauge_test.go | 2 +- middleware/requestlog/requestlog_test.go | 2 +- olympics/main_test.go | 4 ++-- pgfixture/pg.go | 2 +- pgfixture/pg_test.go | 2 +- retryupdate/mock_test.go | 4 ++-- retryupdate/update.go | 2 +- retryupdate/update_test.go | 6 +++--- shopfront/redis_test.go | 2 +- shopfront/shopfront_test.go | 2 +- smartsched/scheduler_test.go | 6 +++--- structtags/README.md | 2 +- sum/README.md | 6 +++--- testenv.docker | 2 +- testequal/README.md | 2 +- tools/testtool/cmd/testtool/main.go | 2 +- tools/testtool/commands/list_test.go | 10 +++++----- tools/testtool/commands/report.go | 2 +- tools/testtool/commands/test_submission.go | 4 ++-- tools/testtool/testdata/list/go.mod | 2 +- tools/testtool/testdata/pkgfind/go.mod | 2 +- .../coverme/private/coverme/coverage_test.go | 2 +- .../submissions/correct/coverme/private/go.mod | 2 +- .../coverme/student/coverme/coverage_test.go | 2 +- .../submissions/correct/coverme/student/go.mod | 2 +- .../correct/cumulativecoverage/private/go.mod | 2 +- .../correct/cumulativecoverage/student/go.mod | 2 +- .../submissions/correct/sum/private/go.mod | 2 +- .../submissions/correct/sum/student/go.mod | 2 +- .../submissions/correct/sum/student/sum/sum.go | 2 +- .../incorrect/badbenchmark/private/go.mod | 2 +- .../incorrect/badbenchmark/student/go.mod | 2 +- .../incorrect/brokenstyle/private/go.mod | 2 +- .../incorrect/brokenstyle/student/go.mod | 2 +- .../incorrect/brokentest/private/go.mod | 2 +- .../incorrect/brokentest/student/go.mod | 2 +- .../submissions/incorrect/datarace/private/go.mod | 2 +- .../submissions/incorrect/datarace/student/go.mod | 2 +- .../incorrect/newdependency/private/go.mod | 2 +- .../incorrect/newdependency/student/go.mod | 2 +- .../incorrect/poorcoverage/private/go.mod | 2 +- .../private/poorcoverage/coverage_test.go | 2 +- .../incorrect/poorcoverage/student/go.mod | 2 +- .../student/poorcoverage/coverage_test.go | 2 +- tour0/README.md | 2 +- tour1/README.md | 2 +- treeiter/treeiter_example_test.go | 2 +- treeiter/treeiter_test.go | 2 +- urlfetch/main_test.go | 4 ++-- urlshortener/main_test.go | 4 ++-- utf8/reverse/README.md | 2 +- varfmt/README.md | 2 +- wasm/flappygopher/go.mod | 2 +- wordcount/main_test.go | 4 ++-- wscat/main_test.go | 4 ++-- 116 files changed, 181 insertions(+), 182 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e6a87ce..7c47cb4 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -10,7 +10,7 @@ Небольшие исправления на <10 строк проще всего послать через веб интерфейс гитлаба. -1. Откройте нужный файл в веб интерфейсе репозитория https://gitlab.com/manytask/itmo-go/private +1. Откройте нужный файл в веб интерфейсе репозитория https://gitlab.com/manytask/itmo-go/public 2. Нажмите на кнопку "Edit". Во всплывающей подсказке нажмите кнопку "Fork". ![](docs/edit-and-fork.png) 3. Внесите изменения в файл. Нажмите "Commit Changes" внизу страницы. @@ -20,7 +20,7 @@ Для многофайловых исправлений можно сначала сделать исправление локально: -1. Создайте форк https://gitlab.com/manytask/itmo-go/private аналогично тому, что выше. +1. Создайте форк https://gitlab.com/manytask/itmo-go/public аналогично тому, что выше. 2. Закоммитьте все локальные изменения, которые вы не хотите добавлять в репозиторий курса. diff --git a/README.md b/README.md index 2746753..4073448 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Для работы с кодом нужен go 1.18 или выше. ```sh -git clone https://gitlab.com/manytask/itmo-go/private.git +git clone https://gitlab.com/manytask/itmo-go/public.git cd shad-go go test ./sum/... ``` diff --git a/allocs/README.md b/allocs/README.md index 7e51637..2b5b721 100644 --- a/allocs/README.md +++ b/allocs/README.md @@ -15,7 +15,7 @@ ``` goos: linux goarch: amd64 -pkg: gitlab.com/manytask/itmo-go/private/allocs +pkg: gitlab.com/manytask/itmo-go/public/allocs Benchmark/count-4 73200 16294 ns/op 880 B/op 5 allocs/op Benchmark/main-4 40485 30113 ns/op 1034 B/op 9 allocs/op ``` @@ -23,7 +23,7 @@ Benchmark/main-4 40485 30113 ns/op 1034 Значения бенчмарков для авторского решения: ```goos: linux goarch: amd64 - pkg: gitlab.com/manytask/itmo-go/private/allocs + pkg: gitlab.com/manytask/itmo-go/public/allocs Benchmark/count-4 212850 5471 ns/op 4144 B/op 2 allocs/op Benchmark/main-4 143937 8247 ns/op 4176 B/op 3 allocs/op ``` diff --git a/batcher/batcher.go b/batcher/batcher.go index ef834d8..38c7549 100644 --- a/batcher/batcher.go +++ b/batcher/batcher.go @@ -2,7 +2,7 @@ package batcher -import "gitlab.com/manytask/itmo-go/private/batcher/slow" +import "gitlab.com/manytask/itmo-go/public/batcher/slow" type Batcher struct{} diff --git a/batcher/batcher_test.go b/batcher/batcher_test.go index 3756103..3251492 100644 --- a/batcher/batcher_test.go +++ b/batcher/batcher_test.go @@ -9,7 +9,7 @@ import ( "github.com/stretchr/testify/require" "go.uber.org/goleak" - "gitlab.com/manytask/itmo-go/private/batcher/slow" + "gitlab.com/manytask/itmo-go/public/batcher/slow" ) func TestSimple(t *testing.T) { diff --git a/blowfish/blowfish_test.go b/blowfish/blowfish_test.go index 8be95a8..6c544d7 100644 --- a/blowfish/blowfish_test.go +++ b/blowfish/blowfish_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/require" - "gitlab.com/manytask/itmo-go/private/blowfish" + "gitlab.com/manytask/itmo-go/public/blowfish" ) var _ cipher.Block = (*blowfish.Blowfish)(nil) diff --git a/ciletters/README.md b/ciletters/README.md index 26651cd..c55d21f 100644 --- a/ciletters/README.md +++ b/ciletters/README.md @@ -35,7 +35,7 @@ Your pipeline #194613 has failed! // 194613 -- это ID pipeline'а // Далее идут последние 10 строк лога gitlab runner'а testtool: copying go.mod, go.sum and .golangci.yml testtool: running tests - testtool: > go test -mod readonly -tags private -c -o /tmp/bincache730817117/5d83984f885e61c1 gitlab.com/manytask/itmo-go/private/sum + testtool: > go test -mod readonly -tags private -c -o /tmp/bincache730817117/5d83984f885e61c1 gitlab.com/manytask/itmo-go/public/sum --- FAIL: TestSum (0.00s) sum_test.go:19: 2 + 2 == 0 != 4 sum_test.go:19: 9223372036854775807 + 1 == 0 != -9223372036854775808 diff --git a/ciletters/letter_test.go b/ciletters/letter_test.go index c3359c7..43d7c12 100644 --- a/ciletters/letter_test.go +++ b/ciletters/letter_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/require" - "gitlab.com/manytask/itmo-go/private/tools/testtool" + "gitlab.com/manytask/itmo-go/public/tools/testtool" ) type testCase struct { @@ -93,7 +93,7 @@ testtool: copying !change files testtool: copying testdata directory testtool: copying go.mod, go.sum and .golangci.yml testtool: running tests -testtool: > go test -mod readonly -tags private -c -o /tmp/bincache730817117/5d83984f885e61c1 gitlab.com/manytask/itmo-go/private/sum +testtool: > go test -mod readonly -tags private -c -o /tmp/bincache730817117/5d83984f885e61c1 gitlab.com/manytask/itmo-go/public/sum --- FAIL: TestSum (0.00s) sum_test.go:19: 2 + 2 == 0 != 4 sum_test.go:19: 9223372036854775807 + 1 == 0 != -9223372036854775808 @@ -113,7 +113,7 @@ ERROR: Job failed: exit code 1`, Stage: test, Job grade testtool: copying go.mod, go.sum and .golangci.yml testtool: running tests - testtool: > go test -mod readonly -tags private -c -o /tmp/bincache730817117/5d83984f885e61c1 gitlab.com/manytask/itmo-go/private/sum + testtool: > go test -mod readonly -tags private -c -o /tmp/bincache730817117/5d83984f885e61c1 gitlab.com/manytask/itmo-go/public/sum --- FAIL: TestSum (0.00s) sum_test.go:19: 2 + 2 == 0 != 4 sum_test.go:19: 9223372036854775807 + 1 == 0 != -9223372036854775808 @@ -156,7 +156,7 @@ testtool: copying !change files testtool: copying testdata directory testtool: copying go.mod, go.sum and .golangci.yml testtool: running tests -testtool: > go test -mod readonly -tags private -c -o /tmp/bincache730817117/5d83984f885e61c1 gitlab.com/manytask/itmo-go/private/sum +testtool: > go test -mod readonly -tags private -c -o /tmp/bincache730817117/5d83984f885e61c1 gitlab.com/manytask/itmo-go/public/sum --- FAIL: TestSum (0.00s) sum_test.go:19: 2 + 2 == 0 != 4 sum_test.go:19: 9223372036854775807 + 1 == 0 != -9223372036854775808 @@ -188,7 +188,7 @@ ERROR: Job failed: exit code 1`, Stage: %v, Job %v testtool: copying go.mod, go.sum and .golangci.yml testtool: running tests - testtool: > go test -mod readonly -tags private -c -o /tmp/bincache730817117/5d83984f885e61c1 gitlab.com/manytask/itmo-go/private/sum + testtool: > go test -mod readonly -tags private -c -o /tmp/bincache730817117/5d83984f885e61c1 gitlab.com/manytask/itmo-go/public/sum --- FAIL: TestSum (0.00s) sum_test.go:19: 2 + 2 == 0 != 4 sum_test.go:19: 9223372036854775807 + 1 == 0 != -9223372036854775808 diff --git a/coverme/app/app.go b/coverme/app/app.go index aef7721..e4dc905 100644 --- a/coverme/app/app.go +++ b/coverme/app/app.go @@ -12,8 +12,8 @@ import ( "github.com/gorilla/handlers" "github.com/gorilla/mux" - "gitlab.com/manytask/itmo-go/private/coverme/models" - "gitlab.com/manytask/itmo-go/private/coverme/utils" + "gitlab.com/manytask/itmo-go/public/coverme/models" + "gitlab.com/manytask/itmo-go/public/coverme/utils" ) type App struct { diff --git a/coverme/client/client.go b/coverme/client/client.go index 6d15442..9d8d92f 100644 --- a/coverme/client/client.go +++ b/coverme/client/client.go @@ -8,7 +8,7 @@ import ( "fmt" "net/http" - "gitlab.com/manytask/itmo-go/private/coverme/models" + "gitlab.com/manytask/itmo-go/public/coverme/models" ) type Client struct { diff --git a/coverme/main.go b/coverme/main.go index 7b5230f..6e07230 100644 --- a/coverme/main.go +++ b/coverme/main.go @@ -5,8 +5,8 @@ package main import ( "flag" - "gitlab.com/manytask/itmo-go/private/coverme/app" - "gitlab.com/manytask/itmo-go/private/coverme/models" + "gitlab.com/manytask/itmo-go/public/coverme/app" + "gitlab.com/manytask/itmo-go/public/coverme/models" ) func main() { diff --git a/dao/dao_test.go b/dao/dao_test.go index 020e0c9..1a76ac0 100644 --- a/dao/dao_test.go +++ b/dao/dao_test.go @@ -9,7 +9,7 @@ import ( "github.com/stretchr/testify/require" "go.uber.org/goleak" - "gitlab.com/manytask/itmo-go/private/pgfixture" + "gitlab.com/manytask/itmo-go/public/pgfixture" ) func TestDao(t *testing.T) { diff --git a/digitalclock/main_test.go b/digitalclock/main_test.go index 7762d4c..4862399 100644 --- a/digitalclock/main_test.go +++ b/digitalclock/main_test.go @@ -18,10 +18,10 @@ import ( "github.com/stretchr/testify/require" - "gitlab.com/manytask/itmo-go/private/tools/testtool" + "gitlab.com/manytask/itmo-go/public/tools/testtool" ) -const importPath = "gitlab.com/manytask/itmo-go/private/digitalclock" +const importPath = "gitlab.com/manytask/itmo-go/public/digitalclock" var binCache testtool.BinCache diff --git a/distbuild/disttest/fixture.go b/distbuild/disttest/fixture.go index 4468a62..ad2d76c 100644 --- a/distbuild/disttest/fixture.go +++ b/distbuild/disttest/fixture.go @@ -17,13 +17,13 @@ import ( "github.com/stretchr/testify/require" "go.uber.org/goleak" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/api" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/artifact" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/client" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/dist" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/filecache" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/worker" - "gitlab.com/manytask/itmo-go/private/tools/testtool" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/api" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/artifact" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/client" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/dist" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/filecache" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/worker" + "gitlab.com/manytask/itmo-go/public/tools/testtool" "go.uber.org/zap" ) diff --git a/distbuild/disttest/recorder.go b/distbuild/disttest/recorder.go index d7d640e..2a5d32a 100644 --- a/distbuild/disttest/recorder.go +++ b/distbuild/disttest/recorder.go @@ -1,7 +1,7 @@ package disttest import ( - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/build" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/build" ) type JobResult struct { diff --git a/distbuild/disttest/single_worker_test.go b/distbuild/disttest/single_worker_test.go index 544689d..6291aa9 100644 --- a/distbuild/disttest/single_worker_test.go +++ b/distbuild/disttest/single_worker_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/build" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/build" ) var singleWorkerConfig = &Config{WorkerCount: 1} diff --git a/distbuild/disttest/three_workers_test.go b/distbuild/disttest/three_workers_test.go index 1724c36..14cf40d 100644 --- a/distbuild/disttest/three_workers_test.go +++ b/distbuild/disttest/three_workers_test.go @@ -9,7 +9,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/build" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/build" ) var threeWorkerConfig = &Config{WorkerCount: 3} diff --git a/distbuild/pkg/api/build.go b/distbuild/pkg/api/build.go index d8c122a..e9faf2d 100644 --- a/distbuild/pkg/api/build.go +++ b/distbuild/pkg/api/build.go @@ -3,7 +3,7 @@ package api import ( "context" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/build" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/build" ) type BuildRequest struct { diff --git a/distbuild/pkg/api/build_client.go b/distbuild/pkg/api/build_client.go index 49f4d08..767256f 100644 --- a/distbuild/pkg/api/build_client.go +++ b/distbuild/pkg/api/build_client.go @@ -7,7 +7,7 @@ import ( "go.uber.org/zap" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/build" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/build" ) type BuildClient struct{} diff --git a/distbuild/pkg/api/build_test.go b/distbuild/pkg/api/build_test.go index c6670ad..26272aa 100644 --- a/distbuild/pkg/api/build_test.go +++ b/distbuild/pkg/api/build_test.go @@ -12,9 +12,9 @@ import ( "github.com/stretchr/testify/require" "go.uber.org/zap/zaptest" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/api" - mock "gitlab.com/manytask/itmo-go/private/distbuild/pkg/api/mock" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/build" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/api" + mock "gitlab.com/manytask/itmo-go/public/distbuild/pkg/api/mock" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/build" ) //go:generate mockgen -package mock -destination mock/mock.go . Service diff --git a/distbuild/pkg/api/heartbeat.go b/distbuild/pkg/api/heartbeat.go index cda931a..7e7116a 100644 --- a/distbuild/pkg/api/heartbeat.go +++ b/distbuild/pkg/api/heartbeat.go @@ -3,7 +3,7 @@ package api import ( "context" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/build" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/build" ) // JobResult описывает результат работы джоба. diff --git a/distbuild/pkg/api/heartbeat_test.go b/distbuild/pkg/api/heartbeat_test.go index 8bf1a04..60f8311 100644 --- a/distbuild/pkg/api/heartbeat_test.go +++ b/distbuild/pkg/api/heartbeat_test.go @@ -11,9 +11,9 @@ import ( "github.com/stretchr/testify/require" "go.uber.org/zap/zaptest" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/api" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/api/mock" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/build" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/api" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/api/mock" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/build" ) //go:generate mockgen -package mock -destination mock/heartbeat.go . HeartbeatService diff --git a/distbuild/pkg/api/mock/heartbeat.go b/distbuild/pkg/api/mock/heartbeat.go index 2ac278a..0134e3b 100644 --- a/distbuild/pkg/api/mock/heartbeat.go +++ b/distbuild/pkg/api/mock/heartbeat.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: gitlab.com/manytask/itmo-go/private/distbuild/pkg/api (interfaces: HeartbeatService) +// Source: gitlab.com/manytask/itmo-go/public/distbuild/pkg/api (interfaces: HeartbeatService) // Package mock is a generated GoMock package. package mock @@ -7,7 +7,7 @@ package mock import ( context "context" gomock "github.com/golang/mock/gomock" - api "gitlab.com/manytask/itmo-go/private/distbuild/pkg/api" + api "gitlab.com/manytask/itmo-go/public/distbuild/pkg/api" reflect "reflect" ) diff --git a/distbuild/pkg/api/mock/mock.go b/distbuild/pkg/api/mock/mock.go index 8f41d2a..02e2887 100644 --- a/distbuild/pkg/api/mock/mock.go +++ b/distbuild/pkg/api/mock/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: gitlab.com/manytask/itmo-go/private/distbuild/pkg/api (interfaces: Service) +// Source: gitlab.com/manytask/itmo-go/public/distbuild/pkg/api (interfaces: Service) // Package mock is a generated GoMock package. package mock @@ -7,8 +7,8 @@ package mock import ( context "context" gomock "github.com/golang/mock/gomock" - api "gitlab.com/manytask/itmo-go/private/distbuild/pkg/api" - build "gitlab.com/manytask/itmo-go/private/distbuild/pkg/build" + api "gitlab.com/manytask/itmo-go/public/distbuild/pkg/api" + build "gitlab.com/manytask/itmo-go/public/distbuild/pkg/build" reflect "reflect" ) diff --git a/distbuild/pkg/artifact/cache.go b/distbuild/pkg/artifact/cache.go index 7f1858c..0a28732 100644 --- a/distbuild/pkg/artifact/cache.go +++ b/distbuild/pkg/artifact/cache.go @@ -9,7 +9,7 @@ import ( "path/filepath" "sync" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/build" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/build" ) var ( diff --git a/distbuild/pkg/artifact/cache_test.go b/distbuild/pkg/artifact/cache_test.go index 94678cb..e2b5581 100644 --- a/distbuild/pkg/artifact/cache_test.go +++ b/distbuild/pkg/artifact/cache_test.go @@ -9,8 +9,8 @@ import ( "github.com/stretchr/testify/require" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/artifact" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/build" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/artifact" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/build" ) type testCache struct { diff --git a/distbuild/pkg/artifact/client.go b/distbuild/pkg/artifact/client.go index db63b03..cc39835 100644 --- a/distbuild/pkg/artifact/client.go +++ b/distbuild/pkg/artifact/client.go @@ -5,7 +5,7 @@ package artifact import ( "context" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/build" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/build" ) // Download artifact from remote cache into local cache. diff --git a/distbuild/pkg/artifact/client_test.go b/distbuild/pkg/artifact/client_test.go index 2b1a04b..99df4a0 100644 --- a/distbuild/pkg/artifact/client_test.go +++ b/distbuild/pkg/artifact/client_test.go @@ -11,8 +11,8 @@ import ( "github.com/stretchr/testify/require" "go.uber.org/zap/zaptest" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/artifact" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/build" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/artifact" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/build" ) func TestArtifactTransfer(t *testing.T) { diff --git a/distbuild/pkg/client/build.go b/distbuild/pkg/client/build.go index 63c69b0..744581f 100644 --- a/distbuild/pkg/client/build.go +++ b/distbuild/pkg/client/build.go @@ -7,7 +7,7 @@ import ( "go.uber.org/zap" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/build" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/build" ) type Client struct{} diff --git a/distbuild/pkg/dist/coordinator.go b/distbuild/pkg/dist/coordinator.go index 61646c7..1e6625c 100644 --- a/distbuild/pkg/dist/coordinator.go +++ b/distbuild/pkg/dist/coordinator.go @@ -8,8 +8,8 @@ import ( "go.uber.org/zap" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/filecache" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/scheduler" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/filecache" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/scheduler" ) type Coordinator struct{} diff --git a/distbuild/pkg/filecache/client.go b/distbuild/pkg/filecache/client.go index 9e0068c..ea8a948 100644 --- a/distbuild/pkg/filecache/client.go +++ b/distbuild/pkg/filecache/client.go @@ -7,7 +7,7 @@ import ( "go.uber.org/zap" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/build" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/build" ) type Client struct{} diff --git a/distbuild/pkg/filecache/client_test.go b/distbuild/pkg/filecache/client_test.go index 70b26b6..eeba44f 100644 --- a/distbuild/pkg/filecache/client_test.go +++ b/distbuild/pkg/filecache/client_test.go @@ -14,8 +14,8 @@ import ( "github.com/stretchr/testify/require" "go.uber.org/zap/zaptest" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/build" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/filecache" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/build" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/filecache" ) type env struct { diff --git a/distbuild/pkg/filecache/filecache.go b/distbuild/pkg/filecache/filecache.go index a26df8b..ee9e9ba 100644 --- a/distbuild/pkg/filecache/filecache.go +++ b/distbuild/pkg/filecache/filecache.go @@ -6,8 +6,8 @@ import ( "os" "path/filepath" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/artifact" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/build" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/artifact" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/build" ) var ( diff --git a/distbuild/pkg/filecache/filecache_test.go b/distbuild/pkg/filecache/filecache_test.go index 3865248..fbd8676 100644 --- a/distbuild/pkg/filecache/filecache_test.go +++ b/distbuild/pkg/filecache/filecache_test.go @@ -8,8 +8,8 @@ import ( "github.com/stretchr/testify/require" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/build" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/filecache" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/build" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/filecache" ) type testCache struct { diff --git a/distbuild/pkg/scheduler/scheduler.go b/distbuild/pkg/scheduler/scheduler.go index 937f2a5..bf2cda6 100644 --- a/distbuild/pkg/scheduler/scheduler.go +++ b/distbuild/pkg/scheduler/scheduler.go @@ -8,8 +8,8 @@ import ( "go.uber.org/zap" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/api" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/build" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/api" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/build" ) var TimeAfter = time.After diff --git a/distbuild/pkg/tarstream/stream_test.go b/distbuild/pkg/tarstream/stream_test.go index 4b9d347..fa81339 100644 --- a/distbuild/pkg/tarstream/stream_test.go +++ b/distbuild/pkg/tarstream/stream_test.go @@ -10,7 +10,7 @@ import ( "github.com/stretchr/testify/require" "golang.org/x/sys/unix" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/tarstream" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/tarstream" ) func TestTarStream(t *testing.T) { diff --git a/distbuild/pkg/worker/worker.go b/distbuild/pkg/worker/worker.go index 9feace0..897c03d 100644 --- a/distbuild/pkg/worker/worker.go +++ b/distbuild/pkg/worker/worker.go @@ -8,9 +8,9 @@ import ( "go.uber.org/zap" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/api" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/artifact" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/filecache" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/api" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/artifact" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/filecache" ) type Worker struct{} diff --git a/docs/allocation_profiling.md b/docs/allocation_profiling.md index 8eefcaf..2d410a6 100644 --- a/docs/allocation_profiling.md +++ b/docs/allocation_profiling.md @@ -7,7 +7,7 @@ ✗ go test -v -run=^$ -bench=BenchmarkSprintf -memprofile=mem.out ./varfmt/... goos: linux goarch: amd64 -pkg: gitlab.com/manytask/itmo-go/private/varfmt +pkg: gitlab.com/manytask/itmo-go/public/varfmt cpu: Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz BenchmarkSprintf BenchmarkSprintf/small @@ -17,7 +17,7 @@ BenchmarkSprintf/small_string-8 13282659 84.48 ns/op 16 B/op BenchmarkSprintf/big BenchmarkSprintf/big-8 20089 62372 ns/op 16388 B/op 1 allocs/op PASS -ok gitlab.com/manytask/itmo-go/private/varfmt 4.363s +ok gitlab.com/manytask/itmo-go/public/varfmt 4.363s ``` Сэмплы профайлера будут записаны в бинарный файл `mem.out`. @@ -53,7 +53,7 @@ Showing nodes accounting for 715.73MB, 99.37% of 720.23MB total Dropped 24 nodes (cum <= 3.60MB) flat flat% sum% cum cum% 715.73MB 99.37% 99.37% 716.73MB 99.51% fmt.Sprintf - 0 0% 99.37% 716.73MB 99.51% gitlab.com/manytask/itmo-go/private/varfmt.BenchmarkSprintf.func1 + 0 0% 99.37% 716.73MB 99.51% gitlab.com/manytask/itmo-go/public/varfmt.BenchmarkSprintf.func1 0 0% 99.37% 716.73MB 99.51% testing.(*B).launch 0 0% 99.37% 716.73MB 99.51% testing.(*B).runN (pprof) diff --git a/docs/gitfame_review_comments.md b/docs/gitfame_review_comments.md index cb90f1a..b8819dd 100644 --- a/docs/gitfame_review_comments.md +++ b/docs/gitfame_review_comments.md @@ -63,8 +63,8 @@ import ( "flag" "log" - "gitlab.com/manytask/itmo-go/private/gitfame/configs" - "gitlab.com/manytask/itmo-go/private/gitfame/internal" + "gitlab.com/manytask/itmo-go/public/gitfame/configs" + "gitlab.com/manytask/itmo-go/public/gitfame/internal" "github.com/spf13/pflag" @@ -81,8 +81,8 @@ import ( "github.com/spf13/pflag" - "gitlab.com/manytask/itmo-go/private/gitfame/configs" - "gitlab.com/manytask/itmo-go/private/gitfame/internal" + "gitlab.com/manytask/itmo-go/public/gitfame/configs" + "gitlab.com/manytask/itmo-go/public/gitfame/internal" ) ``` diff --git a/externalsort/sort_test.go b/externalsort/sort_test.go index d529bba..0e3e125 100644 --- a/externalsort/sort_test.go +++ b/externalsort/sort_test.go @@ -12,7 +12,7 @@ import ( "github.com/stretchr/testify/require" - "gitlab.com/manytask/itmo-go/private/tools/testtool" + "gitlab.com/manytask/itmo-go/public/tools/testtool" ) func TestMerge(t *testing.T) { diff --git a/fetchall/main_test.go b/fetchall/main_test.go index d6fdd3b..cc94d6d 100644 --- a/fetchall/main_test.go +++ b/fetchall/main_test.go @@ -17,10 +17,10 @@ import ( "github.com/stretchr/testify/require" - "gitlab.com/manytask/itmo-go/private/tools/testtool" + "gitlab.com/manytask/itmo-go/public/tools/testtool" ) -const fetchallImportPath = "gitlab.com/manytask/itmo-go/private/fetchall" +const fetchallImportPath = "gitlab.com/manytask/itmo-go/public/fetchall" var binCache testtool.BinCache diff --git a/fileleak/fileleak_test.go b/fileleak/fileleak_test.go index 154af1c..3b2a9d8 100644 --- a/fileleak/fileleak_test.go +++ b/fileleak/fileleak_test.go @@ -11,8 +11,8 @@ import ( "github.com/stretchr/testify/require" - "gitlab.com/manytask/itmo-go/private/fileleak" - "gitlab.com/manytask/itmo-go/private/tools/testtool" + "gitlab.com/manytask/itmo-go/public/fileleak" + "gitlab.com/manytask/itmo-go/public/tools/testtool" ) type fakeT struct { diff --git a/firewall/cmd/firewall/main_test.go b/firewall/cmd/firewall/main_test.go index fdb8551..d9c220b 100644 --- a/firewall/cmd/firewall/main_test.go +++ b/firewall/cmd/firewall/main_test.go @@ -15,10 +15,10 @@ import ( "github.com/go-resty/resty/v2" "github.com/stretchr/testify/require" - "gitlab.com/manytask/itmo-go/private/tools/testtool" + "gitlab.com/manytask/itmo-go/public/tools/testtool" ) -const importPath = "gitlab.com/manytask/itmo-go/private/firewall/cmd/firewall" +const importPath = "gitlab.com/manytask/itmo-go/public/firewall/cmd/firewall" var binCache testtool.BinCache diff --git a/genericsum/genericsum_test.go b/genericsum/genericsum_test.go index 96fea95..819eeb8 100644 --- a/genericsum/genericsum_test.go +++ b/genericsum/genericsum_test.go @@ -9,7 +9,7 @@ import ( "github.com/stretchr/testify/require" "go.uber.org/goleak" - "gitlab.com/manytask/itmo-go/private/genericsum" + "gitlab.com/manytask/itmo-go/public/genericsum" ) func TestMin(t *testing.T) { diff --git a/gitfame/test/integration/gitfame_test.go b/gitfame/test/integration/gitfame_test.go index 4b7b13c..7b50657 100644 --- a/gitfame/test/integration/gitfame_test.go +++ b/gitfame/test/integration/gitfame_test.go @@ -14,10 +14,10 @@ import ( "github.com/stretchr/testify/require" "gopkg.in/yaml.v2" - "gitlab.com/manytask/itmo-go/private/tools/testtool" + "gitlab.com/manytask/itmo-go/public/tools/testtool" ) -const importPath = "gitlab.com/manytask/itmo-go/private/gitfame/cmd/gitfame" +const importPath = "gitlab.com/manytask/itmo-go/public/gitfame/cmd/gitfame" var binCache testtool.BinCache diff --git a/go.mod b/go.mod index 8a2ba07..2298213 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module gitlab.com/manytask/itmo-go/private +module gitlab.com/manytask/itmo-go/public go 1.18 diff --git a/gossip/gossip.go b/gossip/gossip.go index bb49897..e314555 100644 --- a/gossip/gossip.go +++ b/gossip/gossip.go @@ -5,8 +5,7 @@ package gossip import ( "time" - "gitlab.com/manytask/itmo-go/private/gossip/meshpb" - "google.golang.org/grpc" + "gitlab.com/manytask/itmo-go/public/gossip/meshpb" ) type PeerConfig struct { diff --git a/gossip/gossip_test.go b/gossip/gossip_test.go index 12d9d68..2baaa44 100644 --- a/gossip/gossip_test.go +++ b/gossip/gossip_test.go @@ -8,8 +8,8 @@ import ( "time" "github.com/stretchr/testify/require" - "gitlab.com/manytask/itmo-go/private/gossip" - "gitlab.com/manytask/itmo-go/private/gossip/meshpb" + "gitlab.com/manytask/itmo-go/public/gossip" + "gitlab.com/manytask/itmo-go/public/gossip/meshpb" "go.uber.org/goleak" "google.golang.org/grpc" ) diff --git a/gossip/meshpb/protocol.proto b/gossip/meshpb/protocol.proto index 8597e5c..2d0440c 100644 --- a/gossip/meshpb/protocol.proto +++ b/gossip/meshpb/protocol.proto @@ -2,7 +2,7 @@ syntax = "proto3"; -option go_package = "gitlab.com/manytask/itmo-go/private/gossip/meshpb"; +option go_package = "gitlab.com/manytask/itmo-go/public/gossip/meshpb"; // PeerMeta is arbitrary message that is propagated with peer gossip. message PeerMeta { diff --git a/gzep/README.md b/gzep/README.md index 52215d8..48d57b7 100644 --- a/gzep/README.md +++ b/gzep/README.md @@ -6,14 +6,14 @@ ``` goos: linux goarch: amd64 -pkg: gitlab.com/manytask/itmo-go/private/gzep +pkg: gitlab.com/manytask/itmo-go/public/gzep cpu: Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz BenchmarkEncodeSimple BenchmarkEncodeSimple-8 7047 176628 ns/op 813872 B/op 17 allocs/op BenchmarkEncode BenchmarkEncode-8 41706 32616 ns/op 19 B/op 0 allocs/op PASS -ok gitlab.com/manytask/itmo-go/private/gzep 3.625s +ok gitlab.com/manytask/itmo-go/public/gzep 3.625s ``` ### С чего начать? diff --git a/gzep/encode_test.go b/gzep/encode_test.go index 563f25a..3308b36 100644 --- a/gzep/encode_test.go +++ b/gzep/encode_test.go @@ -9,8 +9,8 @@ import ( "github.com/stretchr/testify/require" - "gitlab.com/manytask/itmo-go/private/gzep" - "gitlab.com/manytask/itmo-go/private/tools/testtool" + "gitlab.com/manytask/itmo-go/public/gzep" + "gitlab.com/manytask/itmo-go/public/tools/testtool" ) func BenchmarkEncode(b *testing.B) { diff --git a/illegal/field_test.go b/illegal/field_test.go index 1f3d396..a7aa76e 100644 --- a/illegal/field_test.go +++ b/illegal/field_test.go @@ -5,8 +5,8 @@ import ( "github.com/stretchr/testify/assert" - "gitlab.com/manytask/itmo-go/private/illegal" - "gitlab.com/manytask/itmo-go/private/illegal/internal" + "gitlab.com/manytask/itmo-go/public/illegal" + "gitlab.com/manytask/itmo-go/public/illegal/internal" ) func TestIllegalField(t *testing.T) { diff --git a/illegal/string_test.go b/illegal/string_test.go index acf4b82..56670cd 100644 --- a/illegal/string_test.go +++ b/illegal/string_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/assert" - "gitlab.com/manytask/itmo-go/private/illegal" + "gitlab.com/manytask/itmo-go/public/illegal" ) func TestStringFromBytes(t *testing.T) { diff --git a/iprange/example_test.go b/iprange/example_test.go index d18f71f..fb64113 100644 --- a/iprange/example_test.go +++ b/iprange/example_test.go @@ -4,7 +4,7 @@ import ( "fmt" "log" - "gitlab.com/manytask/itmo-go/private/iprange" + "gitlab.com/manytask/itmo-go/public/iprange" ) func ExampleParseList() { diff --git a/keylock/keylock_test.go b/keylock/keylock_test.go index 5d24f1c..8ef35f4 100644 --- a/keylock/keylock_test.go +++ b/keylock/keylock_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/require" "go.uber.org/goleak" - "gitlab.com/manytask/itmo-go/private/keylock" + "gitlab.com/manytask/itmo-go/public/keylock" ) func timeout(d time.Duration) <-chan struct{} { diff --git a/lectures/00-intro/lecture.slide b/lectures/00-intro/lecture.slide index b06d9ee..cc9fcd3 100644 --- a/lectures/00-intro/lecture.slide +++ b/lectures/00-intro/lecture.slide @@ -12,7 +12,7 @@ * Ссылки .link https://wiki.yandex.ru/shad/groups/2018/Semester4/GoLang/ Вики страница -.link https://gitlab.com/manytask/itmo-go/private Репозиторий +.link https://gitlab.com/manytask/itmo-go/public Репозиторий .link https://t.me/joinchat/BjrYSxdPJGtJdd1pae08Zg Чат курса в телеграме [[https://p.go.manytask.org]] - эти слайды. diff --git a/lectures/04-testing/gomock/mock.go b/lectures/04-testing/gomock/mock.go index 911e064..244d490 100644 --- a/lectures/04-testing/gomock/mock.go +++ b/lectures/04-testing/gomock/mock.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: gitlab.com/manytask/itmo-go/private/lectures/04-testing/gomock (interfaces: Foo) +// Source: gitlab.com/manytask/itmo-go/public/lectures/04-testing/gomock (interfaces: Foo) // Package example is a generated GoMock package. package example diff --git a/lectures/04-testing/lecture.slide b/lectures/04-testing/lecture.slide index 43398c9..c410b47 100644 --- a/lectures/04-testing/lecture.slide +++ b/lectures/04-testing/lecture.slide @@ -285,7 +285,7 @@ Good example go test -cover PASS coverage: 42.9% of statements - ok gitlab.com/manytask/itmo-go/private/lectures/04-testing/size 0.001s + ok gitlab.com/manytask/itmo-go/public/lectures/04-testing/size 0.001s * Coverage @@ -543,13 +543,13 @@ Good example ================== WARNING: DATA RACE Read at 0x00c000092090 by goroutine 8: - gitlab.com/manytask/itmo-go/private/lectures/04-testing/race.TestRace() + gitlab.com/manytask/itmo-go/public/lectures/04-testing/race.TestRace() /home/prime/Code/shad-go/lectures/04-testing/race/race_test.go:25 +0x144 testing.tRunner() /usr/local/go/src/testing/testing.go:909 +0x199 Previous write at 0x00c000092090 by goroutine 9: - gitlab.com/manytask/itmo-go/private/lectures/04-testing/race.TestRace.func1() + gitlab.com/manytask/itmo-go/public/lectures/04-testing/race.TestRace.func1() /home/prime/Code/shad-go/lectures/04-testing/race/race_test.go:17 +0x6c ... @@ -557,7 +557,7 @@ Good example --- FAIL: TestRace (0.00s) testing.go:853: race detected during execution of test FAIL - FAIL gitlab.com/manytask/itmo-go/private/lectures/04-testing/race 0.007s + FAIL gitlab.com/manytask/itmo-go/public/lectures/04-testing/race 0.007s * White box testing diff --git a/lectures/go.mod b/lectures/go.mod index 994070b..953c30a 100644 --- a/lectures/go.mod +++ b/lectures/go.mod @@ -1,4 +1,4 @@ -module gitlab.com/manytask/itmo-go/private/lectures +module gitlab.com/manytask/itmo-go/public/lectures go 1.20 diff --git a/ledger/ledger_test.go b/ledger/ledger_test.go index 0942b5c..986d6fd 100644 --- a/ledger/ledger_test.go +++ b/ledger/ledger_test.go @@ -11,8 +11,8 @@ import ( "github.com/stretchr/testify/require" "go.uber.org/goleak" - "gitlab.com/manytask/itmo-go/private/ledger" - "gitlab.com/manytask/itmo-go/private/pgfixture" + "gitlab.com/manytask/itmo-go/public/ledger" + "gitlab.com/manytask/itmo-go/public/pgfixture" ) func TestLedger(t *testing.T) { diff --git a/middleware/auth/auth_test.go b/middleware/auth/auth_test.go index 2312fc0..770a37b 100644 --- a/middleware/auth/auth_test.go +++ b/middleware/auth/auth_test.go @@ -9,7 +9,7 @@ import ( "github.com/go-chi/chi/v5" "github.com/stretchr/testify/require" - "gitlab.com/manytask/itmo-go/private/middleware/auth" + "gitlab.com/manytask/itmo-go/public/middleware/auth" ) type fakeChecker map[string]struct { diff --git a/middleware/httpgauge/httpgauge_test.go b/middleware/httpgauge/httpgauge_test.go index d12a345..13fe4d0 100644 --- a/middleware/httpgauge/httpgauge_test.go +++ b/middleware/httpgauge/httpgauge_test.go @@ -9,7 +9,7 @@ import ( "github.com/go-chi/chi/v5" "github.com/stretchr/testify/require" - "gitlab.com/manytask/itmo-go/private/middleware/httpgauge" + "gitlab.com/manytask/itmo-go/public/middleware/httpgauge" ) func TestMiddleware(t *testing.T) { diff --git a/middleware/requestlog/requestlog_test.go b/middleware/requestlog/requestlog_test.go index d129652..1af019a 100644 --- a/middleware/requestlog/requestlog_test.go +++ b/middleware/requestlog/requestlog_test.go @@ -11,7 +11,7 @@ import ( "go.uber.org/zap" "go.uber.org/zap/zaptest/observer" - "gitlab.com/manytask/itmo-go/private/middleware/requestlog" + "gitlab.com/manytask/itmo-go/public/middleware/requestlog" ) func TestRequestLog(t *testing.T) { diff --git a/olympics/main_test.go b/olympics/main_test.go index 9a0489a..60f4e18 100644 --- a/olympics/main_test.go +++ b/olympics/main_test.go @@ -16,10 +16,10 @@ import ( "github.com/google/go-cmp/cmp" "github.com/stretchr/testify/require" - "gitlab.com/manytask/itmo-go/private/tools/testtool" + "gitlab.com/manytask/itmo-go/public/tools/testtool" ) -const importPath = "gitlab.com/manytask/itmo-go/private/olympics" +const importPath = "gitlab.com/manytask/itmo-go/public/olympics" var binCache testtool.BinCache diff --git a/pgfixture/pg.go b/pgfixture/pg.go index d000bff..3e5cefb 100644 --- a/pgfixture/pg.go +++ b/pgfixture/pg.go @@ -11,7 +11,7 @@ import ( "github.com/stretchr/testify/require" - "gitlab.com/manytask/itmo-go/private/tools/testtool" + "gitlab.com/manytask/itmo-go/public/tools/testtool" ) func lookPath(t *testing.T, name string) string { diff --git a/pgfixture/pg_test.go b/pgfixture/pg_test.go index bdeeee8..a96a15c 100644 --- a/pgfixture/pg_test.go +++ b/pgfixture/pg_test.go @@ -7,7 +7,7 @@ import ( "github.com/jackc/pgx/v4" "github.com/stretchr/testify/require" - "gitlab.com/manytask/itmo-go/private/pgfixture" + "gitlab.com/manytask/itmo-go/public/pgfixture" ) func TestLocalPostgres(t *testing.T) { diff --git a/retryupdate/mock_test.go b/retryupdate/mock_test.go index 1a04f0d..34f2988 100644 --- a/retryupdate/mock_test.go +++ b/retryupdate/mock_test.go @@ -1,12 +1,12 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: gitlab.com/manytask/itmo-go/private/retryupdate/kvapi (interfaces: Client) +// Source: gitlab.com/manytask/itmo-go/public/retryupdate/kvapi (interfaces: Client) // Package retryupdate_test is a generated GoMock package. package retryupdate_test import ( gomock "github.com/golang/mock/gomock" - kvapi "gitlab.com/manytask/itmo-go/private/retryupdate/kvapi" + kvapi "gitlab.com/manytask/itmo-go/public/retryupdate/kvapi" reflect "reflect" ) diff --git a/retryupdate/update.go b/retryupdate/update.go index fd7f04e..3ea8a86 100644 --- a/retryupdate/update.go +++ b/retryupdate/update.go @@ -2,7 +2,7 @@ package retryupdate -import "gitlab.com/manytask/itmo-go/private/retryupdate/kvapi" +import "gitlab.com/manytask/itmo-go/public/retryupdate/kvapi" func UpdateValue(c kvapi.Client, key string, updateFn func(oldValue *string) (newValue string, err error)) error { panic("implement me") diff --git a/retryupdate/update_test.go b/retryupdate/update_test.go index ac5b0c2..eddee69 100644 --- a/retryupdate/update_test.go +++ b/retryupdate/update_test.go @@ -1,6 +1,6 @@ package retryupdate_test -//go:generate mockgen -destination mock_test.go -package retryupdate_test gitlab.com/manytask/itmo-go/private/retryupdate/kvapi Client +//go:generate mockgen -destination mock_test.go -package retryupdate_test gitlab.com/manytask/itmo-go/public/retryupdate/kvapi Client import ( "errors" @@ -11,8 +11,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/require" - "gitlab.com/manytask/itmo-go/private/retryupdate" - "gitlab.com/manytask/itmo-go/private/retryupdate/kvapi" + "gitlab.com/manytask/itmo-go/public/retryupdate" + "gitlab.com/manytask/itmo-go/public/retryupdate/kvapi" ) var ( diff --git a/shopfront/redis_test.go b/shopfront/redis_test.go index 46423f1..a3380c5 100644 --- a/shopfront/redis_test.go +++ b/shopfront/redis_test.go @@ -9,7 +9,7 @@ import ( "github.com/go-redis/redis/v8" "github.com/stretchr/testify/require" - "gitlab.com/manytask/itmo-go/private/tools/testtool" + "gitlab.com/manytask/itmo-go/public/tools/testtool" ) type testingTB interface { diff --git a/shopfront/shopfront_test.go b/shopfront/shopfront_test.go index bd8dd1c..c2581be 100644 --- a/shopfront/shopfront_test.go +++ b/shopfront/shopfront_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/require" "go.uber.org/goleak" - "gitlab.com/manytask/itmo-go/private/shopfront" + "gitlab.com/manytask/itmo-go/public/shopfront" ) func TestShopfront(t *testing.T) { diff --git a/smartsched/scheduler_test.go b/smartsched/scheduler_test.go index 2af1d7e..263f9ec 100644 --- a/smartsched/scheduler_test.go +++ b/smartsched/scheduler_test.go @@ -11,9 +11,9 @@ import ( "go.uber.org/goleak" "go.uber.org/zap/zaptest" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/api" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/build" - "gitlab.com/manytask/itmo-go/private/distbuild/pkg/scheduler" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/api" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/build" + "gitlab.com/manytask/itmo-go/public/distbuild/pkg/scheduler" ) const ( diff --git a/structtags/README.md b/structtags/README.md index 8ebb58e..001cec5 100644 --- a/structtags/README.md +++ b/structtags/README.md @@ -5,7 +5,7 @@ ``` goos: linux goarch: amd64 -pkg: gitlab.com/manytask/itmo-go/private/structtags +pkg: gitlab.com/manytask/itmo-go/public/structtags cpu: Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz BenchmarkUnpacker/user-4 4158832 268.2 ns/op 0 B/op 0 allocs/op BenchmarkUnpacker/good-4 1000000 1198 ns/op 220 B/op 6 allocs/op diff --git a/sum/README.md b/sum/README.md index b9e502e..c357948 100644 --- a/sum/README.md +++ b/sum/README.md @@ -2,7 +2,7 @@ В этой задаче вам нужно научиться сдавать решения в тестовую систему. -0. Склонируйте этот репозиторий с https://gitlab.com/manytask/itmo-go/private +0. Склонируйте этот репозиторий с https://gitlab.com/manytask/itmo-go/public 1. Откройте файл `sum.go` и реализуйте функцию сложения двух чисел. @@ -24,7 +24,7 @@ ```shell # Если вы еще не зарегистрировались в тестовой системе, сделайте это сейчас. - # Перейдите по ссылке My Repo на https://go.manytask.org/ + # Перейдите по ссылке My Repo на https://itmo-go.manytask.org/ # Нажмите на синюю кнопку clone и скопируйте адрес и "Clone with SSH" # Выполните в консоли команду, заменив последний аргумент на ваш адрес git remote add student git@gitlab.manytask.org:go-spring-2023/USERNAME.git @@ -51,6 +51,6 @@ Если вы хотите перезапустить тестирование в коммите, вы можете нажать на кнопку Retry на странице с логом тестирования, или сделать новый коммит с незначительными изменениями и запушить его. -8. Посмотрите как проходит тестирование, пройдя по ссылке Submits со страницы https://go.manytask.org/ +8. Посмотрите как проходит тестирование, пройдя по ссылке Submits со страницы https://itmo-go.manytask.org/ 9. Убедитесь, что ваша оценка появилась в [таблице](https://docs.google.com/spreadsheets/d/1rTqdHu2AJtdCeFp_iLKsKVk848Wddh2rW0nOmO6Y528). diff --git a/testenv.docker b/testenv.docker index ef2c765..1ff07ad 100644 --- a/testenv.docker +++ b/testenv.docker @@ -6,6 +6,6 @@ RUN cd /opt/shad && go mod download COPY .gitlab-ci.yml /opt/shad/.grader-ci.yml -RUN cd /opt/shad && go install gitlab.com/manytask/itmo-go/private/tools/testtool/cmd/testtool +RUN cd /opt/shad && go install gitlab.com/manytask/itmo-go/public/tools/testtool/cmd/testtool RUN find /opt/shad -type f -iname '*.go' -not -path '*/testdata/*' | xargs chmod o-rwx diff --git a/testequal/README.md b/testequal/README.md index 2e31da9..5867635 100644 --- a/testequal/README.md +++ b/testequal/README.md @@ -27,7 +27,7 @@ func TestMath(t *testing.T) { actual : 2 message : 1 == 2 FAIL -FAIL gitlab.com/manytask/itmo-go/private/testequal 0.003s +FAIL gitlab.com/manytask/itmo-go/public/testequal 0.003s FAIL ``` diff --git a/tools/testtool/cmd/testtool/main.go b/tools/testtool/cmd/testtool/main.go index c018f07..de302e1 100644 --- a/tools/testtool/cmd/testtool/main.go +++ b/tools/testtool/cmd/testtool/main.go @@ -1,7 +1,7 @@ package main import ( - "gitlab.com/manytask/itmo-go/private/tools/testtool/commands" + "gitlab.com/manytask/itmo-go/public/tools/testtool/commands" ) func main() { diff --git a/tools/testtool/commands/list_test.go b/tools/testtool/commands/list_test.go index 1ab6dcf..1fa9d07 100644 --- a/tools/testtool/commands/list_test.go +++ b/tools/testtool/commands/list_test.go @@ -39,13 +39,13 @@ func TestListPackages(t *testing.T) { binaries, tests := listTestsAndBinaries("../testdata/pkgfind/task", []string{"-tags", "private"}) assert.Equal(t, binaries, map[string]struct{}{ - "gitlab.com/manytask/itmo-go/private/task/cmd/tool": {}, - "gitlab.com/manytask/itmo-go/private/task/cmd/tool_with_test": {}, + "gitlab.com/manytask/itmo-go/public/task/cmd/tool": {}, + "gitlab.com/manytask/itmo-go/public/task/cmd/tool_with_test": {}, }) assert.Equal(t, tests, map[string]struct{}{ - "gitlab.com/manytask/itmo-go/private/task/cmd/tool_with_test": {}, - "gitlab.com/manytask/itmo-go/private/task/pkg/a": {}, - "gitlab.com/manytask/itmo-go/private/task/pkg/c": {}, + "gitlab.com/manytask/itmo-go/public/task/cmd/tool_with_test": {}, + "gitlab.com/manytask/itmo-go/public/task/pkg/a": {}, + "gitlab.com/manytask/itmo-go/public/task/pkg/c": {}, }) } diff --git a/tools/testtool/commands/report.go b/tools/testtool/commands/report.go index e3c65fa..f08ce3b 100644 --- a/tools/testtool/commands/report.go +++ b/tools/testtool/commands/report.go @@ -9,7 +9,7 @@ import ( var testingToken = "" -const reportEndpoint = "https://go.manytask.org/api/report" +const reportEndpoint = "https://itmo-go.manytask.org/api/report" func reportTestResults(token string, task string, userID string, failed bool) error { form := url.Values{} diff --git a/tools/testtool/commands/test_submission.go b/tools/testtool/commands/test_submission.go index 32391af..882eced 100644 --- a/tools/testtool/commands/test_submission.go +++ b/tools/testtool/commands/test_submission.go @@ -17,7 +17,7 @@ import ( "github.com/spf13/cobra" "golang.org/x/perf/benchstat" - "gitlab.com/manytask/itmo-go/private/tools/testtool" + "gitlab.com/manytask/itmo-go/public/tools/testtool" ) const ( @@ -26,7 +26,7 @@ const ( privateRepoFlag = "private-repo" testdataDir = "testdata" - moduleImportPath = "gitlab.com/manytask/itmo-go/private" + moduleImportPath = "gitlab.com/manytask/itmo-go/public" ) var testSubmissionCmd = &cobra.Command{ diff --git a/tools/testtool/testdata/list/go.mod b/tools/testtool/testdata/list/go.mod index 66e91b3..4734f80 100644 --- a/tools/testtool/testdata/list/go.mod +++ b/tools/testtool/testdata/list/go.mod @@ -1,3 +1,3 @@ -module gitlab.com/manytask/itmo-go/private +module gitlab.com/manytask/itmo-go/public go 1.16 diff --git a/tools/testtool/testdata/pkgfind/go.mod b/tools/testtool/testdata/pkgfind/go.mod index 66e91b3..4734f80 100644 --- a/tools/testtool/testdata/pkgfind/go.mod +++ b/tools/testtool/testdata/pkgfind/go.mod @@ -1,3 +1,3 @@ -module gitlab.com/manytask/itmo-go/private +module gitlab.com/manytask/itmo-go/public go 1.16 diff --git a/tools/testtool/testdata/submissions/correct/coverme/private/coverme/coverage_test.go b/tools/testtool/testdata/submissions/correct/coverme/private/coverme/coverage_test.go index 84e20fb..bbc653c 100644 --- a/tools/testtool/testdata/submissions/correct/coverme/private/coverme/coverage_test.go +++ b/tools/testtool/testdata/submissions/correct/coverme/private/coverme/coverage_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/require" - "gitlab.com/manytask/itmo-go/private/coverme" + "gitlab.com/manytask/itmo-go/public/coverme" ) // min coverage: .,subpkg 70% diff --git a/tools/testtool/testdata/submissions/correct/coverme/private/go.mod b/tools/testtool/testdata/submissions/correct/coverme/private/go.mod index a41247e..b968c37 100644 --- a/tools/testtool/testdata/submissions/correct/coverme/private/go.mod +++ b/tools/testtool/testdata/submissions/correct/coverme/private/go.mod @@ -1,4 +1,4 @@ -module gitlab.com/manytask/itmo-go/private +module gitlab.com/manytask/itmo-go/public go 1.16 diff --git a/tools/testtool/testdata/submissions/correct/coverme/student/coverme/coverage_test.go b/tools/testtool/testdata/submissions/correct/coverme/student/coverme/coverage_test.go index 84e20fb..bbc653c 100644 --- a/tools/testtool/testdata/submissions/correct/coverme/student/coverme/coverage_test.go +++ b/tools/testtool/testdata/submissions/correct/coverme/student/coverme/coverage_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/require" - "gitlab.com/manytask/itmo-go/private/coverme" + "gitlab.com/manytask/itmo-go/public/coverme" ) // min coverage: .,subpkg 70% diff --git a/tools/testtool/testdata/submissions/correct/coverme/student/go.mod b/tools/testtool/testdata/submissions/correct/coverme/student/go.mod index a41247e..b968c37 100644 --- a/tools/testtool/testdata/submissions/correct/coverme/student/go.mod +++ b/tools/testtool/testdata/submissions/correct/coverme/student/go.mod @@ -1,4 +1,4 @@ -module gitlab.com/manytask/itmo-go/private +module gitlab.com/manytask/itmo-go/public go 1.16 diff --git a/tools/testtool/testdata/submissions/correct/cumulativecoverage/private/go.mod b/tools/testtool/testdata/submissions/correct/cumulativecoverage/private/go.mod index 4194546..72b4a2e 100644 --- a/tools/testtool/testdata/submissions/correct/cumulativecoverage/private/go.mod +++ b/tools/testtool/testdata/submissions/correct/cumulativecoverage/private/go.mod @@ -1,4 +1,4 @@ -module gitlab.com/manytask/itmo-go/private +module gitlab.com/manytask/itmo-go/public go 1.16 diff --git a/tools/testtool/testdata/submissions/correct/cumulativecoverage/student/go.mod b/tools/testtool/testdata/submissions/correct/cumulativecoverage/student/go.mod index 4194546..72b4a2e 100644 --- a/tools/testtool/testdata/submissions/correct/cumulativecoverage/student/go.mod +++ b/tools/testtool/testdata/submissions/correct/cumulativecoverage/student/go.mod @@ -1,4 +1,4 @@ -module gitlab.com/manytask/itmo-go/private +module gitlab.com/manytask/itmo-go/public go 1.16 diff --git a/tools/testtool/testdata/submissions/correct/sum/private/go.mod b/tools/testtool/testdata/submissions/correct/sum/private/go.mod index 4194546..72b4a2e 100644 --- a/tools/testtool/testdata/submissions/correct/sum/private/go.mod +++ b/tools/testtool/testdata/submissions/correct/sum/private/go.mod @@ -1,4 +1,4 @@ -module gitlab.com/manytask/itmo-go/private +module gitlab.com/manytask/itmo-go/public go 1.16 diff --git a/tools/testtool/testdata/submissions/correct/sum/student/go.mod b/tools/testtool/testdata/submissions/correct/sum/student/go.mod index 4194546..72b4a2e 100644 --- a/tools/testtool/testdata/submissions/correct/sum/student/go.mod +++ b/tools/testtool/testdata/submissions/correct/sum/student/go.mod @@ -1,4 +1,4 @@ -module gitlab.com/manytask/itmo-go/private +module gitlab.com/manytask/itmo-go/public go 1.16 diff --git a/tools/testtool/testdata/submissions/correct/sum/student/sum/sum.go b/tools/testtool/testdata/submissions/correct/sum/student/sum/sum.go index f01af1e..3314ed7 100644 --- a/tools/testtool/testdata/submissions/correct/sum/student/sum/sum.go +++ b/tools/testtool/testdata/submissions/correct/sum/student/sum/sum.go @@ -3,7 +3,7 @@ package sum -import "gitlab.com/manytask/itmo-go/private/sum/pkg" +import "gitlab.com/manytask/itmo-go/public/sum/pkg" func Sum(a, b int64) int64 { pkg.F() diff --git a/tools/testtool/testdata/submissions/incorrect/badbenchmark/private/go.mod b/tools/testtool/testdata/submissions/incorrect/badbenchmark/private/go.mod index 4766321..9b193e8 100644 --- a/tools/testtool/testdata/submissions/incorrect/badbenchmark/private/go.mod +++ b/tools/testtool/testdata/submissions/incorrect/badbenchmark/private/go.mod @@ -1,4 +1,4 @@ -module gitlab.com/manytask/itmo-go/private +module gitlab.com/manytask/itmo-go/public go 1.16 diff --git a/tools/testtool/testdata/submissions/incorrect/badbenchmark/student/go.mod b/tools/testtool/testdata/submissions/incorrect/badbenchmark/student/go.mod index 4194546..72b4a2e 100644 --- a/tools/testtool/testdata/submissions/incorrect/badbenchmark/student/go.mod +++ b/tools/testtool/testdata/submissions/incorrect/badbenchmark/student/go.mod @@ -1,4 +1,4 @@ -module gitlab.com/manytask/itmo-go/private +module gitlab.com/manytask/itmo-go/public go 1.16 diff --git a/tools/testtool/testdata/submissions/incorrect/brokenstyle/private/go.mod b/tools/testtool/testdata/submissions/incorrect/brokenstyle/private/go.mod index 4194546..72b4a2e 100644 --- a/tools/testtool/testdata/submissions/incorrect/brokenstyle/private/go.mod +++ b/tools/testtool/testdata/submissions/incorrect/brokenstyle/private/go.mod @@ -1,4 +1,4 @@ -module gitlab.com/manytask/itmo-go/private +module gitlab.com/manytask/itmo-go/public go 1.16 diff --git a/tools/testtool/testdata/submissions/incorrect/brokenstyle/student/go.mod b/tools/testtool/testdata/submissions/incorrect/brokenstyle/student/go.mod index 4194546..72b4a2e 100644 --- a/tools/testtool/testdata/submissions/incorrect/brokenstyle/student/go.mod +++ b/tools/testtool/testdata/submissions/incorrect/brokenstyle/student/go.mod @@ -1,4 +1,4 @@ -module gitlab.com/manytask/itmo-go/private +module gitlab.com/manytask/itmo-go/public go 1.16 diff --git a/tools/testtool/testdata/submissions/incorrect/brokentest/private/go.mod b/tools/testtool/testdata/submissions/incorrect/brokentest/private/go.mod index 4194546..72b4a2e 100644 --- a/tools/testtool/testdata/submissions/incorrect/brokentest/private/go.mod +++ b/tools/testtool/testdata/submissions/incorrect/brokentest/private/go.mod @@ -1,4 +1,4 @@ -module gitlab.com/manytask/itmo-go/private +module gitlab.com/manytask/itmo-go/public go 1.16 diff --git a/tools/testtool/testdata/submissions/incorrect/brokentest/student/go.mod b/tools/testtool/testdata/submissions/incorrect/brokentest/student/go.mod index 4194546..72b4a2e 100644 --- a/tools/testtool/testdata/submissions/incorrect/brokentest/student/go.mod +++ b/tools/testtool/testdata/submissions/incorrect/brokentest/student/go.mod @@ -1,4 +1,4 @@ -module gitlab.com/manytask/itmo-go/private +module gitlab.com/manytask/itmo-go/public go 1.16 diff --git a/tools/testtool/testdata/submissions/incorrect/datarace/private/go.mod b/tools/testtool/testdata/submissions/incorrect/datarace/private/go.mod index 4194546..72b4a2e 100644 --- a/tools/testtool/testdata/submissions/incorrect/datarace/private/go.mod +++ b/tools/testtool/testdata/submissions/incorrect/datarace/private/go.mod @@ -1,4 +1,4 @@ -module gitlab.com/manytask/itmo-go/private +module gitlab.com/manytask/itmo-go/public go 1.16 diff --git a/tools/testtool/testdata/submissions/incorrect/datarace/student/go.mod b/tools/testtool/testdata/submissions/incorrect/datarace/student/go.mod index 4194546..72b4a2e 100644 --- a/tools/testtool/testdata/submissions/incorrect/datarace/student/go.mod +++ b/tools/testtool/testdata/submissions/incorrect/datarace/student/go.mod @@ -1,4 +1,4 @@ -module gitlab.com/manytask/itmo-go/private +module gitlab.com/manytask/itmo-go/public go 1.16 diff --git a/tools/testtool/testdata/submissions/incorrect/newdependency/private/go.mod b/tools/testtool/testdata/submissions/incorrect/newdependency/private/go.mod index 4194546..72b4a2e 100644 --- a/tools/testtool/testdata/submissions/incorrect/newdependency/private/go.mod +++ b/tools/testtool/testdata/submissions/incorrect/newdependency/private/go.mod @@ -1,4 +1,4 @@ -module gitlab.com/manytask/itmo-go/private +module gitlab.com/manytask/itmo-go/public go 1.16 diff --git a/tools/testtool/testdata/submissions/incorrect/newdependency/student/go.mod b/tools/testtool/testdata/submissions/incorrect/newdependency/student/go.mod index 63574d6..2a309e8 100644 --- a/tools/testtool/testdata/submissions/incorrect/newdependency/student/go.mod +++ b/tools/testtool/testdata/submissions/incorrect/newdependency/student/go.mod @@ -1,4 +1,4 @@ -module gitlab.com/manytask/itmo-go/private +module gitlab.com/manytask/itmo-go/public go 1.16 diff --git a/tools/testtool/testdata/submissions/incorrect/poorcoverage/private/go.mod b/tools/testtool/testdata/submissions/incorrect/poorcoverage/private/go.mod index a41247e..b968c37 100644 --- a/tools/testtool/testdata/submissions/incorrect/poorcoverage/private/go.mod +++ b/tools/testtool/testdata/submissions/incorrect/poorcoverage/private/go.mod @@ -1,4 +1,4 @@ -module gitlab.com/manytask/itmo-go/private +module gitlab.com/manytask/itmo-go/public go 1.16 diff --git a/tools/testtool/testdata/submissions/incorrect/poorcoverage/private/poorcoverage/coverage_test.go b/tools/testtool/testdata/submissions/incorrect/poorcoverage/private/poorcoverage/coverage_test.go index 0788f7c..0a3cbe5 100644 --- a/tools/testtool/testdata/submissions/incorrect/poorcoverage/private/poorcoverage/coverage_test.go +++ b/tools/testtool/testdata/submissions/incorrect/poorcoverage/private/poorcoverage/coverage_test.go @@ -7,7 +7,7 @@ import ( "testing" "github.com/stretchr/testify/require" - "gitlab.com/manytask/itmo-go/private/poorcoverage" + "gitlab.com/manytask/itmo-go/public/poorcoverage" ) // min coverage: . 100% diff --git a/tools/testtool/testdata/submissions/incorrect/poorcoverage/student/go.mod b/tools/testtool/testdata/submissions/incorrect/poorcoverage/student/go.mod index a41247e..b968c37 100644 --- a/tools/testtool/testdata/submissions/incorrect/poorcoverage/student/go.mod +++ b/tools/testtool/testdata/submissions/incorrect/poorcoverage/student/go.mod @@ -1,4 +1,4 @@ -module gitlab.com/manytask/itmo-go/private +module gitlab.com/manytask/itmo-go/public go 1.16 diff --git a/tools/testtool/testdata/submissions/incorrect/poorcoverage/student/poorcoverage/coverage_test.go b/tools/testtool/testdata/submissions/incorrect/poorcoverage/student/poorcoverage/coverage_test.go index 0788f7c..0a3cbe5 100644 --- a/tools/testtool/testdata/submissions/incorrect/poorcoverage/student/poorcoverage/coverage_test.go +++ b/tools/testtool/testdata/submissions/incorrect/poorcoverage/student/poorcoverage/coverage_test.go @@ -7,7 +7,7 @@ import ( "testing" "github.com/stretchr/testify/require" - "gitlab.com/manytask/itmo-go/private/poorcoverage" + "gitlab.com/manytask/itmo-go/public/poorcoverage" ) // min coverage: . 100% diff --git a/tour0/README.md b/tour0/README.md index 0d1594d..e183c50 100644 --- a/tour0/README.md +++ b/tour0/README.md @@ -2,6 +2,6 @@ Пройдите первую часть (Basics) tour of go на [сайте](https://tour.golang.org/welcome/1). -После того как вы пройдёте все задачи, пошлите флаг `FLAG{tour0:gopher:9b82d50468bd79610f28ae57eb5cafcd}` в [систему](https://go.manytask.org/submit). +После того как вы пройдёте все задачи, пошлите флаг `FLAG{tour0:gopher:9b82d50468bd79610f28ae57eb5cafcd}` в [систему](https://itmo-go.manytask.org/submit). ![](basics.png) diff --git a/tour1/README.md b/tour1/README.md index 3bbd182..313658d 100644 --- a/tour1/README.md +++ b/tour1/README.md @@ -2,4 +2,4 @@ Пройдите две оставшиеся части (`Methods and interfaces` и `Concurency`) tour of go на [сайте](https://tour.golang.org/list). -После того как вы пройдёте все задачи, пошлите флаг `FLAG{tour1:commanderPike:620b049a66e5a4bd9c2670db971099d2}` в [систему](https://go.manytask.org/submit). +После того как вы пройдёте все задачи, пошлите флаг `FLAG{tour1:commanderPike:620b049a66e5a4bd9c2670db971099d2}` в [систему](https://itmo-go.manytask.org/submit). diff --git a/treeiter/treeiter_example_test.go b/treeiter/treeiter_example_test.go index c20080b..30de8aa 100644 --- a/treeiter/treeiter_example_test.go +++ b/treeiter/treeiter_example_test.go @@ -3,7 +3,7 @@ package treeiter_test import ( "fmt" - "gitlab.com/manytask/itmo-go/private/treeiter" + "gitlab.com/manytask/itmo-go/public/treeiter" ) func ExampleDoInOrder() { diff --git a/treeiter/treeiter_test.go b/treeiter/treeiter_test.go index 11efb03..a164607 100644 --- a/treeiter/treeiter_test.go +++ b/treeiter/treeiter_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/assert" - "gitlab.com/manytask/itmo-go/private/treeiter" + "gitlab.com/manytask/itmo-go/public/treeiter" ) type ValuesNode[T any] struct { diff --git a/urlfetch/main_test.go b/urlfetch/main_test.go index d7916fb..43c54ca 100644 --- a/urlfetch/main_test.go +++ b/urlfetch/main_test.go @@ -15,10 +15,10 @@ import ( "github.com/stretchr/testify/require" - "gitlab.com/manytask/itmo-go/private/tools/testtool" + "gitlab.com/manytask/itmo-go/public/tools/testtool" ) -const urlfetchImportPath = "gitlab.com/manytask/itmo-go/private/urlfetch" +const urlfetchImportPath = "gitlab.com/manytask/itmo-go/public/urlfetch" var binCache testtool.BinCache diff --git a/urlshortener/main_test.go b/urlshortener/main_test.go index e076b17..cfce7a4 100644 --- a/urlshortener/main_test.go +++ b/urlshortener/main_test.go @@ -14,10 +14,10 @@ import ( "github.com/go-resty/resty/v2" "github.com/stretchr/testify/require" - "gitlab.com/manytask/itmo-go/private/tools/testtool" + "gitlab.com/manytask/itmo-go/public/tools/testtool" ) -const importPath = "gitlab.com/manytask/itmo-go/private/urlshortener" +const importPath = "gitlab.com/manytask/itmo-go/public/urlshortener" var binCache testtool.BinCache diff --git a/utf8/reverse/README.md b/utf8/reverse/README.md index 1b825ae..efe04c6 100644 --- a/utf8/reverse/README.md +++ b/utf8/reverse/README.md @@ -18,7 +18,7 @@ ``` goos: linux goarch: amd64 -pkg: gitlab.com/manytask/itmo-go/private/utf8/reverse +pkg: gitlab.com/manytask/itmo-go/public/utf8/reverse BenchmarkReverse-4 395078 2763 ns/op 1792 B/op 2 allocs/op PASS ``` diff --git a/varfmt/README.md b/varfmt/README.md index b9eaf4e..3b6d6d1 100644 --- a/varfmt/README.md +++ b/varfmt/README.md @@ -23,7 +23,7 @@ ``` goos: linux goarch: amd64 -pkg: gitlab.com/manytask/itmo-go/private/varfmt +pkg: gitlab.com/manytask/itmo-go/public/varfmt BenchmarkFormat/small_int-4 4744729 263 ns/op 64 B/op 4 allocs/op BenchmarkFormat/small_string-4 2388128 484 ns/op 168 B/op 8 allocs/op BenchmarkFormat/big-4 8997 127827 ns/op 194656 B/op 41 allocs/op diff --git a/wasm/flappygopher/go.mod b/wasm/flappygopher/go.mod index 3ae6634..2a93f97 100644 --- a/wasm/flappygopher/go.mod +++ b/wasm/flappygopher/go.mod @@ -1,4 +1,4 @@ -module gitlab.com/manytask/itmo-go/private/wasm/flappygopher +module gitlab.com/manytask/itmo-go/public/wasm/flappygopher go 1.20 diff --git a/wordcount/main_test.go b/wordcount/main_test.go index e6750bb..032c188 100644 --- a/wordcount/main_test.go +++ b/wordcount/main_test.go @@ -15,10 +15,10 @@ import ( "github.com/stretchr/testify/require" - "gitlab.com/manytask/itmo-go/private/tools/testtool" + "gitlab.com/manytask/itmo-go/public/tools/testtool" ) -const wordcountImportPath = "gitlab.com/manytask/itmo-go/private/wordcount" +const wordcountImportPath = "gitlab.com/manytask/itmo-go/public/wordcount" var binCache testtool.BinCache diff --git a/wscat/main_test.go b/wscat/main_test.go index 99d9228..78f4277 100644 --- a/wscat/main_test.go +++ b/wscat/main_test.go @@ -17,10 +17,10 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "gitlab.com/manytask/itmo-go/private/tools/testtool" + "gitlab.com/manytask/itmo-go/public/tools/testtool" ) -const importPath = "gitlab.com/manytask/itmo-go/private/wscat" +const importPath = "gitlab.com/manytask/itmo-go/public/wscat" var binCache testtool.BinCache