Skip to content

Commit 74c9286

Browse files
committed
change github.com to go.dedis.ch
1 parent 37ad9b7 commit 74c9286

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+148
-148
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version=$(shell git describe --abbrev=0 --tags || echo '0.0.0')
2-
versionFlag="github.com/dedis/d-voting.Version=$(version)"
2+
versionFlag="go.dedis.ch/d-voting.Version=$(version)"
33
versionFile=$(shell echo $(version) | tr . _)
4-
timeFlag="github.com/dedis/d-voting.BuildTime=$(shell date +'%d/%m/%y_%H:%M')"
4+
timeFlag="go.dedis.ch/d-voting.BuildTime=$(shell date +'%d/%m/%y_%H:%M')"
55

66
lint:
77
# Coding style static check.

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -650,8 +650,8 @@ Build info can be added to the binary with the `ldflags`, at build time. Infos
650650
are stored on variables in the root `mod.go`. For example:
651651

652652
```sh
653-
versionFlag="github.com/dedis/d-voting.Version=`git describe --tags`"
654-
timeFlag="github.com/dedis/d-voting.BuildTime=`date +'%d/%m/%y_%H:%M'`"
653+
versionFlag="go.dedis.ch/d-voting.Version=`git describe --tags`"
654+
timeFlag="go.dedis.ch/d-voting.BuildTime=`date +'%d/%m/%y_%H:%M'`"
655655

656656
go build -ldflags="-X $versionFlag -X $timeFlag" ./cli/dvoting
657657
```

cli/cosipbftcontroller/action_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"testing"
88
"time"
99

10-
"github.com/dedis/d-voting/internal/testing/fake"
1110
"github.com/stretchr/testify/require"
11+
"go.dedis.ch/d-voting/internal/testing/fake"
1212
"go.dedis.ch/dela/cli/node"
1313
"go.dedis.ch/dela/core/access"
1414
"go.dedis.ch/dela/core/ordering"

cli/cosipbftcontroller/mod_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ import (
66
"path/filepath"
77
"testing"
88

9-
"github.com/dedis/d-voting/services/dkg"
9+
"go.dedis.ch/d-voting/services/dkg"
1010
"go.dedis.ch/dela/core/ordering"
1111

12-
"github.com/dedis/d-voting/internal/testing/fake"
1312
"github.com/stretchr/testify/require"
13+
"go.dedis.ch/d-voting/internal/testing/fake"
1414
"go.dedis.ch/dela/cli"
1515
"go.dedis.ch/dela/cli/node"
1616
"go.dedis.ch/dela/core/store/kv"

cli/dvoting/mod.go

+8-8
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ import (
3030
"io"
3131
"os"
3232

33-
dkg "github.com/dedis/d-voting/services/dkg/pedersen/controller"
34-
"github.com/dedis/d-voting/services/dkg/pedersen/json"
35-
shuffle "github.com/dedis/d-voting/services/shuffle/neff/controller"
33+
dkg "go.dedis.ch/d-voting/services/dkg/pedersen/controller"
34+
"go.dedis.ch/d-voting/services/dkg/pedersen/json"
35+
shuffle "go.dedis.ch/d-voting/services/shuffle/neff/controller"
3636

37-
cosipbft "github.com/dedis/d-voting/cli/cosipbftcontroller"
38-
"github.com/dedis/d-voting/cli/postinstall"
39-
evoting "github.com/dedis/d-voting/contracts/evoting/controller"
40-
metrics "github.com/dedis/d-voting/metrics/controller"
37+
cosipbft "go.dedis.ch/d-voting/cli/cosipbftcontroller"
38+
"go.dedis.ch/d-voting/cli/postinstall"
39+
evoting "go.dedis.ch/d-voting/contracts/evoting/controller"
40+
metrics "go.dedis.ch/d-voting/metrics/controller"
4141
"go.dedis.ch/dela/cli/node"
4242
access "go.dedis.ch/dela/contracts/access/controller"
4343
db "go.dedis.ch/dela/core/store/kv/controller"
@@ -46,7 +46,7 @@ import (
4646
mino "go.dedis.ch/dela/mino/minogrpc/controller"
4747
proxy "go.dedis.ch/dela/mino/proxy/http/controller"
4848

49-
_ "github.com/dedis/d-voting/services/shuffle/neff/json"
49+
_ "go.dedis.ch/d-voting/services/shuffle/neff/json"
5050

5151
gapi "go.dedis.ch/dela-apps/gapi/controller"
5252
)

cli/postinstall/mod.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import (
55
"path/filepath"
66
"time"
77

8-
evoting "github.com/dedis/d-voting/contracts/evoting/controller"
9-
prom "github.com/dedis/d-voting/metrics/controller"
10-
dkg "github.com/dedis/d-voting/services/dkg/pedersen/controller"
11-
neff "github.com/dedis/d-voting/services/shuffle/neff/controller"
8+
evoting "go.dedis.ch/d-voting/contracts/evoting/controller"
9+
prom "go.dedis.ch/d-voting/metrics/controller"
10+
dkg "go.dedis.ch/d-voting/services/dkg/pedersen/controller"
11+
neff "go.dedis.ch/d-voting/services/shuffle/neff/controller"
1212
"go.dedis.ch/dela"
1313
"go.dedis.ch/dela/cli"
1414
"go.dedis.ch/dela/cli/node"

contracts/evoting/controller/action.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ import (
1717
"go.dedis.ch/kyber/v3/sign/schnorr"
1818
"go.dedis.ch/kyber/v3/suites"
1919

20-
"github.com/dedis/d-voting/contracts/evoting/types"
21-
"github.com/dedis/d-voting/internal/testing/fake"
22-
eproxy "github.com/dedis/d-voting/proxy"
23-
"github.com/dedis/d-voting/proxy/txnmanager"
24-
ptypes "github.com/dedis/d-voting/proxy/types"
25-
"github.com/dedis/d-voting/services/dkg"
26-
"github.com/dedis/d-voting/services/shuffle"
2720
"github.com/gorilla/mux"
21+
"go.dedis.ch/d-voting/contracts/evoting/types"
22+
"go.dedis.ch/d-voting/internal/testing/fake"
23+
eproxy "go.dedis.ch/d-voting/proxy"
24+
"go.dedis.ch/d-voting/proxy/txnmanager"
25+
ptypes "go.dedis.ch/d-voting/proxy/types"
26+
"go.dedis.ch/d-voting/services/dkg"
27+
"go.dedis.ch/d-voting/services/shuffle"
2828
"go.dedis.ch/dela"
2929
"go.dedis.ch/dela/cli/node"
3030
"go.dedis.ch/dela/core/ordering"

contracts/evoting/evoting.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

contracts/evoting/json/ciphervote.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package json
22

33
import (
4-
"github.com/dedis/d-voting/contracts/evoting/types"
4+
"go.dedis.ch/d-voting/contracts/evoting/types"
55
"go.dedis.ch/dela/serde"
66
"golang.org/x/xerrors"
77
)

contracts/evoting/json/forms.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"encoding/hex"
55
"encoding/json"
66

7-
"github.com/dedis/d-voting/contracts/evoting/types"
7+
"go.dedis.ch/d-voting/contracts/evoting/types"
88
"go.dedis.ch/dela/core/ordering/cosipbft/authority"
99
ctypes "go.dedis.ch/dela/core/ordering/cosipbft/types"
1010
"go.dedis.ch/dela/serde"

contracts/evoting/json/mod.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package json
22

33
import (
4-
"github.com/dedis/d-voting/contracts/evoting/types"
4+
"go.dedis.ch/d-voting/contracts/evoting/types"
55
"go.dedis.ch/dela/serde"
66
)
77

contracts/evoting/json/suffragia.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package json
33
import (
44
"encoding/json"
55

6-
"github.com/dedis/d-voting/contracts/evoting/types"
6+
"go.dedis.ch/d-voting/contracts/evoting/types"
77
"go.dedis.ch/dela/serde"
88
"golang.org/x/xerrors"
99
)

contracts/evoting/json/transaction.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package json
33
import (
44
"encoding/json"
55

6-
"github.com/dedis/d-voting/contracts/evoting/types"
6+
"go.dedis.ch/d-voting/contracts/evoting/types"
77
"go.dedis.ch/dela/serde"
88
"golang.org/x/xerrors"
99
)

contracts/evoting/mod.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
package evoting
22

33
import (
4-
dvoting "github.com/dedis/d-voting"
5-
"github.com/dedis/d-voting/contracts/evoting/types"
6-
"github.com/dedis/d-voting/services/dkg"
74
"github.com/prometheus/client_golang/prometheus"
5+
dvoting "go.dedis.ch/d-voting"
6+
"go.dedis.ch/d-voting/contracts/evoting/types"
7+
"go.dedis.ch/d-voting/services/dkg"
88
"go.dedis.ch/dela/core/access"
99
"go.dedis.ch/dela/core/execution"
1010
"go.dedis.ch/dela/core/execution/native"
@@ -19,7 +19,7 @@ import (
1919
"golang.org/x/xerrors"
2020

2121
// Register the JSON format for the form
22-
_ "github.com/dedis/d-voting/contracts/evoting/json"
22+
_ "go.dedis.ch/d-voting/contracts/evoting/json"
2323
)
2424

2525
var (

contracts/evoting/mod_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import (
77
"strconv"
88
"testing"
99

10-
"github.com/dedis/d-voting/contracts/evoting/types"
11-
"github.com/dedis/d-voting/internal/testing/fake"
12-
"github.com/dedis/d-voting/services/dkg"
1310
"github.com/prometheus/client_golang/prometheus/testutil"
1411
"github.com/stretchr/testify/require"
12+
"go.dedis.ch/d-voting/contracts/evoting/types"
13+
"go.dedis.ch/d-voting/internal/testing/fake"
14+
"go.dedis.ch/d-voting/services/dkg"
1515
"go.dedis.ch/dela/core/access"
1616
"go.dedis.ch/dela/core/execution"
1717
"go.dedis.ch/dela/core/execution/native"

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/dedis/d-voting
1+
module go.dedis.ch/d-voting
22

33
go 1.23
44

integration/ballot.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ import (
1414

1515
"sync/atomic"
1616

17-
"github.com/dedis/d-voting/contracts/evoting"
18-
"github.com/dedis/d-voting/contracts/evoting/controller"
19-
"github.com/dedis/d-voting/contracts/evoting/types"
20-
"github.com/dedis/d-voting/internal/testing/fake"
21-
"github.com/dedis/d-voting/proxy/txnmanager"
22-
ptypes "github.com/dedis/d-voting/proxy/types"
23-
"github.com/dedis/d-voting/services/dkg"
2417
"github.com/stretchr/testify/require"
18+
"go.dedis.ch/d-voting/contracts/evoting"
19+
"go.dedis.ch/d-voting/contracts/evoting/controller"
20+
"go.dedis.ch/d-voting/contracts/evoting/types"
21+
"go.dedis.ch/d-voting/internal/testing/fake"
22+
"go.dedis.ch/d-voting/proxy/txnmanager"
23+
ptypes "go.dedis.ch/d-voting/proxy/types"
24+
"go.dedis.ch/d-voting/services/dkg"
2525
"go.dedis.ch/dela/core/execution/native"
2626
"go.dedis.ch/dela/core/txn"
2727
"go.dedis.ch/kyber/v3"

integration/dkg.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import (
88
"testing"
99
"time"
1010

11-
ptypes "github.com/dedis/d-voting/proxy/types"
12-
"github.com/dedis/d-voting/services/dkg"
1311
"github.com/stretchr/testify/require"
12+
ptypes "go.dedis.ch/d-voting/proxy/types"
13+
"go.dedis.ch/d-voting/services/dkg"
1414
"go.dedis.ch/dela/core/txn"
1515
"go.dedis.ch/kyber/v3"
1616
"golang.org/x/xerrors"

integration/dvotingdela.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ import (
1414
"sync"
1515
"time"
1616

17-
"github.com/dedis/d-voting/contracts/evoting"
18-
etypes "github.com/dedis/d-voting/contracts/evoting/types"
19-
"github.com/dedis/d-voting/services/dkg"
20-
"github.com/dedis/d-voting/services/dkg/pedersen"
21-
"github.com/dedis/d-voting/services/shuffle"
22-
"github.com/dedis/d-voting/services/shuffle/neff"
2317
"github.com/stretchr/testify/require"
18+
"go.dedis.ch/d-voting/contracts/evoting"
19+
etypes "go.dedis.ch/d-voting/contracts/evoting/types"
20+
"go.dedis.ch/d-voting/services/dkg"
21+
"go.dedis.ch/d-voting/services/dkg/pedersen"
22+
"go.dedis.ch/d-voting/services/shuffle"
23+
"go.dedis.ch/d-voting/services/shuffle/neff"
2424
accessContract "go.dedis.ch/dela/contracts/access"
2525
"go.dedis.ch/dela/contracts/value"
2626
"go.dedis.ch/dela/core/access"

integration/form.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ import (
1111
"testing"
1212
"time"
1313

14-
"github.com/dedis/d-voting/contracts/evoting"
15-
"github.com/dedis/d-voting/contracts/evoting/types"
16-
"github.com/dedis/d-voting/internal/testing/fake"
17-
"github.com/dedis/d-voting/proxy/txnmanager"
18-
ptypes "github.com/dedis/d-voting/proxy/types"
1914
"github.com/stretchr/testify/require"
15+
"go.dedis.ch/d-voting/contracts/evoting"
16+
"go.dedis.ch/d-voting/contracts/evoting/types"
17+
"go.dedis.ch/d-voting/internal/testing/fake"
18+
"go.dedis.ch/d-voting/proxy/txnmanager"
19+
ptypes "go.dedis.ch/d-voting/proxy/types"
2020
"go.dedis.ch/dela/core/execution/native"
2121
"go.dedis.ch/dela/core/ordering"
2222
"go.dedis.ch/dela/core/txn"

integration/integration_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import (
88
"testing"
99
"time"
1010

11-
"github.com/dedis/d-voting/contracts/evoting/types"
12-
_ "github.com/dedis/d-voting/services/dkg/pedersen/json"
13-
_ "github.com/dedis/d-voting/services/shuffle/neff/json"
1411
"github.com/rs/zerolog"
1512
"github.com/stretchr/testify/require"
13+
"go.dedis.ch/d-voting/contracts/evoting/types"
14+
_ "go.dedis.ch/d-voting/services/dkg/pedersen/json"
15+
_ "go.dedis.ch/d-voting/services/shuffle/neff/json"
1616
delaPkg "go.dedis.ch/dela"
1717
)
1818

integration/nodes.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"testing"
88
"time"
99

10-
"github.com/dedis/d-voting/contracts/evoting/types"
1110
"github.com/stretchr/testify/require"
11+
"go.dedis.ch/d-voting/contracts/evoting/types"
1212
"golang.org/x/xerrors"
1313
)
1414

integration/performance_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ import (
1111
"testing"
1212
"time"
1313

14-
"github.com/dedis/d-voting/contracts/evoting"
15-
"github.com/dedis/d-voting/contracts/evoting/types"
16-
"github.com/dedis/d-voting/services/dkg"
1714
"github.com/stretchr/testify/require"
15+
"go.dedis.ch/d-voting/contracts/evoting"
16+
"go.dedis.ch/d-voting/contracts/evoting/types"
17+
"go.dedis.ch/d-voting/services/dkg"
1818
"go.dedis.ch/dela/core/execution/native"
1919
"go.dedis.ch/dela/core/ordering/cosipbft"
2020
"go.dedis.ch/dela/core/txn"

integration/scenario_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ import (
1414
"testing"
1515
"time"
1616

17-
"github.com/dedis/d-voting/contracts/evoting/types"
18-
ptypes "github.com/dedis/d-voting/proxy/types"
1917
"github.com/stretchr/testify/require"
18+
"go.dedis.ch/d-voting/contracts/evoting/types"
19+
ptypes "go.dedis.ch/d-voting/proxy/types"
2020
"go.dedis.ch/kyber/v3/util/encoding"
2121
)
2222

integration/shuffle.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package integration
22

33
import (
4-
"github.com/dedis/d-voting/services/shuffle"
4+
"go.dedis.ch/d-voting/services/shuffle"
55
"go.dedis.ch/dela/core/txn/signed"
66
"golang.org/x/xerrors"
77
)

integration/transaction.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import (
1212
"testing"
1313
"time"
1414

15-
"github.com/dedis/d-voting/contracts/evoting"
16-
"github.com/dedis/d-voting/proxy/txnmanager"
1715
"github.com/stretchr/testify/require"
16+
"go.dedis.ch/d-voting/contracts/evoting"
17+
"go.dedis.ch/d-voting/proxy/txnmanager"
1818
"go.dedis.ch/dela"
1919
"go.dedis.ch/dela/contracts/access"
2020
"go.dedis.ch/dela/core/execution/native"
@@ -134,7 +134,7 @@ func (m txManager) addAndWait(args ...txn.Arg) ([]byte, error) {
134134
}
135135

136136
cancel()
137-
137+
138138
time.Sleep(time.Millisecond * (1 << i))
139139
}
140140

integration/votes_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import (
88
"testing"
99
"time"
1010

11-
"github.com/dedis/d-voting/contracts/evoting/types"
12-
_ "github.com/dedis/d-voting/services/dkg/pedersen/json"
13-
_ "github.com/dedis/d-voting/services/shuffle/neff/json"
1411
"github.com/rs/zerolog"
1512
"github.com/stretchr/testify/require"
13+
"go.dedis.ch/d-voting/contracts/evoting/types"
14+
_ "go.dedis.ch/d-voting/services/dkg/pedersen/json"
15+
_ "go.dedis.ch/d-voting/services/shuffle/neff/json"
1616
delaPkg "go.dedis.ch/dela"
1717
)
1818

internal/testing/fake/dkg.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package fake
22

33
import (
4-
"github.com/dedis/d-voting/services/dkg"
4+
"go.dedis.ch/d-voting/services/dkg"
55
"go.dedis.ch/dela/core/txn"
66
"go.dedis.ch/kyber/v3"
77
)

internal/testing/fake/election.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package fake
33
import (
44
"strconv"
55

6-
"github.com/dedis/d-voting/contracts/evoting/types"
6+
"go.dedis.ch/d-voting/contracts/evoting/types"
77
"go.dedis.ch/dela/core/store"
88
"go.dedis.ch/dela/serde"
99
"go.dedis.ch/kyber/v3"

0 commit comments

Comments
 (0)