Commit 44d6838b authored by Christopher Schinnerl's avatar Christopher Schinnerl

change import paths for gitlab

parent 9f8d5353
...@@ -2,6 +2,6 @@ Interested in contributing to Sia? ...@@ -2,6 +2,6 @@ Interested in contributing to Sia?
================================== ==================================
Please review the contributing guidelines in the following pages: Please review the contributing guidelines in the following pages:
- [Guide to Contributing to Sia](https://github.com/NebulousLabs/Sia/blob/master/doc/Guide%20to%20Contributing%20to%20Sia.md) - [Guide to Contributing to Sia](https://gitlab.com/NebulousLabs/Sia/blob/master/doc/Guide%20to%20Contributing%20to%20Sia.md)
- [Developers](https://github.com/NebulousLabs/Sia/blob/master/doc/Developers.md) - [Developers](https://gitlab.com/NebulousLabs/Sia/blob/master/doc/Developers.md)
- [All Documentation](https://github.com/NebulousLabs/Sia/tree/master/doc) - [All Documentation](https://gitlab.com/NebulousLabs/Sia/tree/master/doc)
...@@ -3,8 +3,8 @@ BUILD_TIME=$(shell date) ...@@ -3,8 +3,8 @@ BUILD_TIME=$(shell date)
GIT_REVISION=$(shell git rev-parse --short HEAD) GIT_REVISION=$(shell git rev-parse --short HEAD)
GIT_DIRTY=$(shell git diff-index --quiet HEAD -- || echo "✗-") GIT_DIRTY=$(shell git diff-index --quiet HEAD -- || echo "✗-")
ldflags= -X github.com/NebulousLabs/Sia/build.GitRevision=${GIT_DIRTY}${GIT_REVISION} \ ldflags= -X gitlab.com/NebulousLabs/Sia/build.GitRevision=${GIT_DIRTY}${GIT_REVISION} \
-X "github.com/NebulousLabs/Sia/build.BuildTime=${BUILD_TIME}" -X "gitlab.com/NebulousLabs/Sia/build.BuildTime=${BUILD_TIME}"
# all will build and install release binaries # all will build and install release binaries
all: release all: release
...@@ -13,19 +13,19 @@ all: release ...@@ -13,19 +13,19 @@ all: release
# Sia. # Sia.
dependencies: dependencies:
# Consensus Dependencies # Consensus Dependencies
go get -u github.com/NebulousLabs/demotemutex go get -u gitlab.com/NebulousLabs/demotemutex
go get -u github.com/NebulousLabs/fastrand go get -u gitlab.com/NebulousLabs/fastrand
go get -u github.com/NebulousLabs/merkletree go get -u gitlab.com/NebulousLabs/merkletree
go get -u github.com/NebulousLabs/bolt go get -u gitlab.com/NebulousLabs/bolt
go get -u golang.org/x/crypto/blake2b go get -u golang.org/x/crypto/blake2b
go get -u golang.org/x/crypto/ed25519 go get -u golang.org/x/crypto/ed25519
# Module + Daemon Dependencies # Module + Daemon Dependencies
go get -u github.com/NebulousLabs/entropy-mnemonics go get -u gitlab.com/NebulousLabs/entropy-mnemonics
go get -u github.com/NebulousLabs/errors go get -u gitlab.com/NebulousLabs/errors
go get -u github.com/NebulousLabs/go-upnp go get -u gitlab.com/NebulousLabs/go-upnp
go get -u github.com/NebulousLabs/ratelimit go get -u gitlab.com/NebulousLabs/ratelimit
go get -u github.com/NebulousLabs/threadgroup go get -u gitlab.com/NebulousLabs/threadgroup
go get -u github.com/NebulousLabs/writeaheadlog go get -u gitlab.com/NebulousLabs/writeaheadlog
go get -u github.com/klauspost/reedsolomon go get -u github.com/klauspost/reedsolomon
go get -u github.com/julienschmidt/httprouter go get -u github.com/julienschmidt/httprouter
go get -u github.com/inconshreveable/go-update go get -u github.com/inconshreveable/go-update
...@@ -38,7 +38,7 @@ dependencies: ...@@ -38,7 +38,7 @@ dependencies:
go install -race std go install -race std
go get -u github.com/client9/misspell/cmd/misspell go get -u github.com/client9/misspell/cmd/misspell
go get -u github.com/golang/lint/golint go get -u github.com/golang/lint/golint
go get -u github.com/NebulousLabs/glyphcheck go get -u gitlab.com/NebulousLabs/glyphcheck
# pkgs changes which packages the makefile calls operate on. run changes which # pkgs changes which packages the makefile calls operate on. run changes which
# tests are run during testing. # tests are run during testing.
......
# [![Sia Logo](http://sia.tech/img/svg/sia-green-logo.svg)](http://sia.tech) v1.3.3 (Capricorn) # [![Sia Logo](http://sia.tech/img/svg/sia-green-logo.svg)](http://sia.tech) v1.3.3 (Capricorn)
[![Build Status](https://travis-ci.org/NebulousLabs/Sia.svg?branch=master)](https://travis-ci.org/NebulousLabs/Sia) [![Build Status](https://travis-ci.org/NebulousLabs/Sia.svg?branch=master)](https://travis-ci.org/NebulousLabs/Sia)
[![GoDoc](https://godoc.org/github.com/NebulousLabs/Sia?status.svg)](https://godoc.org/github.com/NebulousLabs/Sia) [![GoDoc](https://godoc.org/gitlab.com/NebulousLabs/Sia?status.svg)](https://godoc.org/gitlab.com/NebulousLabs/Sia)
[![Go Report Card](https://goreportcard.com/badge/github.com/NebulousLabs/Sia)](https://goreportcard.com/report/github.com/NebulousLabs/Sia) [![Go Report Card](https://goreportcard.com/badge/gitlab.com/NebulousLabs/Sia)](https://goreportcard.com/report/gitlab.com/NebulousLabs/Sia)
Sia is a new decentralized cloud storage platform that radically alters the Sia is a new decentralized cloud storage platform that radically alters the
landscape of cloud storage. By leveraging smart contracts, client-side landscape of cloud storage. By leveraging smart contracts, client-side
...@@ -70,7 +70,7 @@ as a sole means of storing important data. ...@@ -70,7 +70,7 @@ as a sole means of storing important data.
This release comes with 2 binaries, siad and siac. siad is a background This release comes with 2 binaries, siad and siac. siad is a background
service, or "daemon," that runs the Sia protocol and exposes an HTTP API on service, or "daemon," that runs the Sia protocol and exposes an HTTP API on
port 9980. siac is a command-line client that can be used to interact with port 9980. siac is a command-line client that can be used to interact with
siad in a user-friendly way. There is also a graphical client, [Sia-UI](https://github.com/NebulousLabs/Sia-UI), which siad in a user-friendly way. There is also a graphical client, [Sia-UI](https://gitlab.com/NebulousLabs/Sia-UI), which
is the preferred way of using Sia for most users. For interested developers, is the preferred way of using Sia for most users. For interested developers,
the siad API is documented [here](doc/API.md). the siad API is documented [here](doc/API.md).
...@@ -92,7 +92,7 @@ To build from source, [Go 1.10 must be installed](https://golang.org/doc/install ...@@ -92,7 +92,7 @@ To build from source, [Go 1.10 must be installed](https://golang.org/doc/install
on the system. Make sure your `$GOPATH` is set, and then simply use `go get`: on the system. Make sure your `$GOPATH` is set, and then simply use `go get`:
``` ```
go get -u github.com/NebulousLabs/Sia/... go get -u gitlab.com/NebulousLabs/Sia/...
``` ```
This will download the Sia repo to your `$GOPATH/src` folder and install the This will download the Sia repo to your `$GOPATH/src` folder and install the
......
...@@ -11,7 +11,7 @@ import ( ...@@ -11,7 +11,7 @@ import (
// issue tracker on Github. If the program does not panic, the call stack for // issue tracker on Github. If the program does not panic, the call stack for
// the running goroutine is printed to help determine the error. // the running goroutine is printed to help determine the error.
func Critical(v ...interface{}) { func Critical(v ...interface{}) {
s := "Critical error: " + fmt.Sprintln(v...) + "Please submit a bug report here: https://github.com/NebulousLabs/Sia/issues\n" s := "Critical error: " + fmt.Sprintln(v...) + "Please submit a bug report here: https://gitlab.com/NebulousLabs/Sia/issues\n"
if Release != "testing" { if Release != "testing" {
debug.PrintStack() debug.PrintStack()
os.Stderr.WriteString(s) os.Stderr.WriteString(s)
......
...@@ -7,7 +7,7 @@ import ( ...@@ -7,7 +7,7 @@ import (
// TestCritical checks that a panic is called in debug mode. // TestCritical checks that a panic is called in debug mode.
func TestCritical(t *testing.T) { func TestCritical(t *testing.T) {
k0 := "critical test killstring" k0 := "critical test killstring"
killstring := "Critical error: critical test killstring\nPlease submit a bug report here: https://github.com/NebulousLabs/Sia/issues\n" killstring := "Critical error: critical test killstring\nPlease submit a bug report here: https://gitlab.com/NebulousLabs/Sia/issues\n"
defer func() { defer func() {
r := recover() r := recover()
if r != killstring { if r != killstring {
...@@ -23,7 +23,7 @@ func TestCriticalVariadic(t *testing.T) { ...@@ -23,7 +23,7 @@ func TestCriticalVariadic(t *testing.T) {
k1 := "critical" k1 := "critical"
k2 := "test" k2 := "test"
k3 := "killstring" k3 := "killstring"
killstring := "Critical error: variadic critical test killstring\nPlease submit a bug report here: https://github.com/NebulousLabs/Sia/issues\n" killstring := "Critical error: variadic critical test killstring\nPlease submit a bug report here: https://gitlab.com/NebulousLabs/Sia/issues\n"
defer func() { defer func() {
r := recover() r := recover()
if r != killstring { if r != killstring {
......
...@@ -9,7 +9,7 @@ import ( ...@@ -9,7 +9,7 @@ import (
"sort" "sort"
"testing" "testing"
"github.com/NebulousLabs/fastrand" "gitlab.com/NebulousLabs/fastrand"
) )
// TestCopyDir checks that CopyDir copies directories as expected. // TestCopyDir checks that CopyDir copies directories as expected.
......
...@@ -6,7 +6,7 @@ import ( ...@@ -6,7 +6,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/NebulousLabs/Sia/types" "gitlab.com/NebulousLabs/Sia/types"
) )
var ( var (
......
...@@ -4,7 +4,7 @@ import ( ...@@ -4,7 +4,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/NebulousLabs/Sia/types" "gitlab.com/NebulousLabs/Sia/types"
) )
// TestEstimatedHeightAt tests that the expectedHeightAt function correctly // TestEstimatedHeightAt tests that the expectedHeightAt function correctly
......
...@@ -3,7 +3,7 @@ package main ...@@ -3,7 +3,7 @@ package main
import ( import (
"fmt" "fmt"
"github.com/NebulousLabs/Sia/build" "gitlab.com/NebulousLabs/Sia/build"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )
......
...@@ -5,7 +5,7 @@ import ( ...@@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/NebulousLabs/Sia/types" "gitlab.com/NebulousLabs/Sia/types"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )
......
...@@ -5,7 +5,7 @@ import ( ...@@ -5,7 +5,7 @@ import (
"os" "os"
"text/tabwriter" "text/tabwriter"
"github.com/NebulousLabs/Sia/modules" "gitlab.com/NebulousLabs/Sia/modules"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )
......
...@@ -8,10 +8,10 @@ import ( ...@@ -8,10 +8,10 @@ import (
"strings" "strings"
"text/tabwriter" "text/tabwriter"
"github.com/NebulousLabs/Sia/crypto" "gitlab.com/NebulousLabs/Sia/crypto"
"github.com/NebulousLabs/Sia/modules" "gitlab.com/NebulousLabs/Sia/modules"
"github.com/NebulousLabs/Sia/node/api/client" "gitlab.com/NebulousLabs/Sia/node/api/client"
"github.com/NebulousLabs/Sia/types" "gitlab.com/NebulousLabs/Sia/types"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )
......
...@@ -8,9 +8,9 @@ import ( ...@@ -8,9 +8,9 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/NebulousLabs/Sia/modules" "gitlab.com/NebulousLabs/Sia/modules"
"github.com/NebulousLabs/Sia/node/api" "gitlab.com/NebulousLabs/Sia/node/api"
"github.com/NebulousLabs/Sia/types" "gitlab.com/NebulousLabs/Sia/types"
) )
const scanHistoryLen = 30 const scanHistoryLen = 30
......
...@@ -7,8 +7,8 @@ import ( ...@@ -7,8 +7,8 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/NebulousLabs/Sia/build" "gitlab.com/NebulousLabs/Sia/build"
"github.com/NebulousLabs/Sia/node/api/client" "gitlab.com/NebulousLabs/Sia/node/api/client"
) )
var ( var (
......
...@@ -7,7 +7,7 @@ import ( ...@@ -7,7 +7,7 @@ import (
"math/big" "math/big"
"strings" "strings"
"github.com/NebulousLabs/Sia/types" "gitlab.com/NebulousLabs/Sia/types"
) )
var errUnableToParseSize = errors.New("unable to parse size") var errUnableToParseSize = errors.New("unable to parse size")
......
...@@ -4,7 +4,7 @@ import ( ...@@ -4,7 +4,7 @@ import (
"math/big" "math/big"
"testing" "testing"
"github.com/NebulousLabs/Sia/types" "gitlab.com/NebulousLabs/Sia/types"
) )
func TestParseFilesize(t *testing.T) { func TestParseFilesize(t *testing.T) {
......
...@@ -33,12 +33,12 @@ import ( ...@@ -33,12 +33,12 @@ import (
"text/tabwriter" "text/tabwriter"
"time" "time"
"github.com/NebulousLabs/errors" "gitlab.com/NebulousLabs/errors"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/NebulousLabs/Sia/modules" "gitlab.com/NebulousLabs/Sia/modules"
"github.com/NebulousLabs/Sia/node/api" "gitlab.com/NebulousLabs/Sia/node/api"
"github.com/NebulousLabs/Sia/types" "gitlab.com/NebulousLabs/Sia/types"
) )
var ( var (
......
...@@ -4,8 +4,8 @@ import ( ...@@ -4,8 +4,8 @@ import (
"sort" "sort"
"testing" "testing"
"github.com/NebulousLabs/Sia/node/api" "gitlab.com/NebulousLabs/Sia/node/api"
"github.com/NebulousLabs/Sia/types" "gitlab.com/NebulousLabs/Sia/types"
) )
// TestSortByValue tests that byValue sorts contracts correctly. // TestSortByValue tests that byValue sorts contracts correctly.
......
...@@ -12,7 +12,7 @@ import ( ...@@ -12,7 +12,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/crypto/ssh/terminal" "golang.org/x/crypto/ssh/terminal"
"github.com/NebulousLabs/Sia/types" "gitlab.com/NebulousLabs/Sia/types"
) )
var ( var (
......
...@@ -10,11 +10,11 @@ import ( ...@@ -10,11 +10,11 @@ import (
"syscall" "syscall"
"time" "time"
"github.com/NebulousLabs/Sia/build" "gitlab.com/NebulousLabs/Sia/build"
"github.com/NebulousLabs/Sia/crypto" "gitlab.com/NebulousLabs/Sia/crypto"
"github.com/NebulousLabs/Sia/modules" "gitlab.com/NebulousLabs/Sia/modules"
"github.com/NebulousLabs/Sia/profile" "gitlab.com/NebulousLabs/Sia/profile"
mnemonics "github.com/NebulousLabs/entropy-mnemonics" mnemonics "gitlab.com/NebulousLabs/entropy-mnemonics"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/crypto/ssh/terminal" "golang.org/x/crypto/ssh/terminal"
......
...@@ -6,7 +6,7 @@ import ( ...@@ -6,7 +6,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/NebulousLabs/Sia/build" "gitlab.com/NebulousLabs/Sia/build"
) )
var ( var (
......
...@@ -21,18 +21,18 @@ import ( ...@@ -21,18 +21,18 @@ import (
"syscall" "syscall"
"time" "time"
"github.com/NebulousLabs/Sia/build" "gitlab.com/NebulousLabs/Sia/build"
"github.com/NebulousLabs/Sia/modules" "gitlab.com/NebulousLabs/Sia/modules"
"github.com/NebulousLabs/Sia/modules/consensus" "gitlab.com/NebulousLabs/Sia/modules/consensus"
"github.com/NebulousLabs/Sia/modules/explorer" "gitlab.com/NebulousLabs/Sia/modules/explorer"
"github.com/NebulousLabs/Sia/modules/gateway" "gitlab.com/NebulousLabs/Sia/modules/gateway"
"github.com/NebulousLabs/Sia/modules/host" "gitlab.com/NebulousLabs/Sia/modules/host"
"github.com/NebulousLabs/Sia/modules/miner" "gitlab.com/NebulousLabs/Sia/modules/miner"
"github.com/NebulousLabs/Sia/modules/renter" "gitlab.com/NebulousLabs/Sia/modules/renter"
"github.com/NebulousLabs/Sia/modules/transactionpool" "gitlab.com/NebulousLabs/Sia/modules/transactionpool"
"github.com/NebulousLabs/Sia/modules/wallet" "gitlab.com/NebulousLabs/Sia/modules/wallet"
"github.com/NebulousLabs/Sia/node/api" "gitlab.com/NebulousLabs/Sia/node/api"
"github.com/NebulousLabs/Sia/types" "gitlab.com/NebulousLabs/Sia/types"
"github.com/inconshreveable/go-update" "github.com/inconshreveable/go-update"
"github.com/julienschmidt/httprouter" "github.com/julienschmidt/httprouter"
......
...@@ -7,8 +7,8 @@ import ( ...@@ -7,8 +7,8 @@ import (
"testing" "testing"
"time" "time"
"github.com/NebulousLabs/Sia/build" "gitlab.com/NebulousLabs/Sia/build"
"github.com/NebulousLabs/Sia/node/api/client" "gitlab.com/NebulousLabs/Sia/node/api/client"
) )
// TestLatestRelease tests that the latestRelease function properly processes a // TestLatestRelease tests that the latestRelease function properly processes a
......
...@@ -9,9 +9,9 @@ import ( ...@@ -9,9 +9,9 @@ import (
"strconv" "strconv"
"testing" "testing"
"github.com/NebulousLabs/Sia/crypto" "gitlab.com/NebulousLabs/Sia/crypto"
"github.com/NebulousLabs/Sia/encoding" "gitlab.com/NebulousLabs/Sia/encoding"
"github.com/NebulousLabs/Sia/types" "gitlab.com/NebulousLabs/Sia/types"
) )
// KeyPairSiag_1_0 matches the KeyPair struct of the siag 1.0 code. // KeyPairSiag_1_0 matches the KeyPair struct of the siag 1.0 code.
......
...@@ -9,7 +9,7 @@ import ( ...@@ -9,7 +9,7 @@ import (
"errors" "errors"
"io" "io"
"github.com/NebulousLabs/fastrand" "gitlab.com/NebulousLabs/fastrand"
"golang.org/x/crypto/twofish" "golang.org/x/crypto/twofish"
) )
......
...@@ -5,7 +5,7 @@ import ( ...@@ -5,7 +5,7 @@ import (
"compress/gzip" "compress/gzip"
"testing" "testing"
"github.com/NebulousLabs/fastrand" "gitlab.com/NebulousLabs/fastrand"
) )
// TestTwofishEncryption checks that encryption and decryption works correctly. // TestTwofishEncryption checks that encryption and decryption works correctly.
......
...@@ -13,7 +13,7 @@ import ( ...@@ -13,7 +13,7 @@ import (
"errors" "errors"
"hash" "hash"
"github.com/NebulousLabs/Sia/encoding" "gitlab.com/NebulousLabs/Sia/encoding"
"golang.org/x/crypto/blake2b" "golang.org/x/crypto/blake2b"
) )
......
...@@ -7,7 +7,7 @@ import ( ...@@ -7,7 +7,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/NebulousLabs/fastrand" "gitlab.com/NebulousLabs/fastrand"
) )
type ( type (
......
...@@ -3,9 +3,9 @@ package crypto ...@@ -3,9 +3,9 @@ package crypto
import ( import (
"bytes" "bytes"
"github.com/NebulousLabs/Sia/encoding" "gitlab.com/NebulousLabs/Sia/encoding"
"github.com/NebulousLabs/merkletree" "gitlab.com/NebulousLabs/merkletree"
) )
const ( const (
......
...@@ -3,7 +3,7 @@ package crypto ...@@ -3,7 +3,7 @@ package crypto
import ( import (
"testing" "testing"
"github.com/NebulousLabs/fastrand" "gitlab.com/NebulousLabs/fastrand"
) )
// TestTreeBuilder builds a tree and gets the merkle root. // TestTreeBuilder builds a tree and gets the merkle root.
......
...@@ -5,8 +5,8 @@ import ( ...@@ -5,8 +5,8 @@ import (
"errors" "errors"
"io" "io"
"github.com/NebulousLabs/Sia/encoding" "gitlab.com/NebulousLabs/Sia/encoding"
"github.com/NebulousLabs/fastrand" "gitlab.com/NebulousLabs/fastrand"
"golang.org/x/crypto/ed25519" "golang.org/x/crypto/ed25519"
) )
......
...@@ -4,8 +4,8 @@ import ( ...@@ -4,8 +4,8 @@ import (
"bytes"