Skip to content

Commit

Permalink
Merge pull request #1129 from mrpalide/revert-migration-on-binary
Browse files Browse the repository at this point in the history
remove migration from binary
  • Loading branch information
ersonp committed Mar 8, 2022
2 parents 68757a0 + 19eab9a commit 08d10f5
Show file tree
Hide file tree
Showing 120 changed files with 3,295 additions and 612 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

### Changed
- config updated to `v1.1.1`
- remove dsmghttp migration to skywire-visor starting

### Added
- added `add-rhv` and `disable-rhv` flags to `skywire-visor` for adding remote hypervisor PK and disable remote hypervisor PK(s) on config file
Expand Down
2 changes: 1 addition & 1 deletion cmd/skywire-cli/commands/config/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/skycoin/skycoin/src/util/logging"
"github.com/spf13/cobra"

"github.com/skycoin/skywire/internal/netutil"
"github.com/skycoin/skywire-utilities/pkg/netutil"
"github.com/skycoin/skywire/pkg/app/launcher"
"github.com/skycoin/skywire/pkg/skyenv"
"github.com/skycoin/skywire/pkg/visor/visorconfig"
Expand Down
24 changes: 0 additions & 24 deletions cmd/skywire-visor/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package commands
import (
"context"
"embed"
"encoding/json"
"fmt"
"io"
"io/fs"
Expand All @@ -23,7 +22,6 @@ import (
"github.com/spf13/cobra"
"github.com/toqueteos/webbrowser"

"github.com/skycoin/skywire/internal/netutil"
"github.com/skycoin/skywire/pkg/restart"
"github.com/skycoin/skywire/pkg/syslog"
"github.com/skycoin/skywire/pkg/visor"
Expand Down Expand Up @@ -111,28 +109,6 @@ func runVisor(args []string) {

conf := initConfig(log, args, confPath)

if netutil.LocalProtocol() {
var dmsgHTTPServersList visorconfig.DmsgHTTPServers
serversListJSON, err := ioutil.ReadFile(conf.DMSGHTTPPath)
if err != nil {
log.WithError(err).Fatal("Failed to read servers.json file.")
}
err = json.Unmarshal(serversListJSON, &dmsgHTTPServersList)
if err != nil {
log.WithError(err).Fatal("Error during parsing servers list")
}

conf.Dmsg.Servers = dmsgHTTPServersList.Prod.DMSGServers
conf.Dmsg.Discovery = dmsgHTTPServersList.Prod.DMSGDiscovery
conf.Transport.AddressResolver = dmsgHTTPServersList.Prod.AddressResolver
conf.Transport.Discovery = dmsgHTTPServersList.Prod.TransportDiscovery
conf.UptimeTracker.Addr = dmsgHTTPServersList.Prod.UptimeTracker
conf.Routing.RouteFinder = dmsgHTTPServersList.Prod.RouteFinder
conf.Launcher.ServiceDisc = dmsgHTTPServersList.Prod.ServiceDiscovery

conf.Flush() //nolint
}

if disableHypervisorPKs {
conf.Hypervisors = []cipher.PubKey{}
}
Expand Down
15 changes: 7 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.17

require (
github.com/AudriusButkevicius/pfilter v0.0.0-20210515103320-4b4b86609d51
github.com/VictoriaMetrics/metrics v1.18.0
github.com/VictoriaMetrics/metrics v1.18.1
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5
github.com/ccding/go-stun/stun v0.0.0-20200514191101-4dc67bcdb029
github.com/gen2brain/dlgs v0.0.0-20210911090025-cbd38e821b98
Expand All @@ -18,18 +18,17 @@ require (
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/reedsolomon v1.9.9 // indirect
github.com/konsorten/go-windows-terminal-sequences v1.0.2
github.com/mattn/go-colorable v0.1.11 // indirect
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect
github.com/mmcloughlin/avo v0.0.0-20200523190732-4439b6b2c061 // indirect
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
github.com/pkg/profile v1.5.0
github.com/shirou/gopsutil/v3 v3.21.4
github.com/sirupsen/logrus v1.8.1
github.com/skycoin/dmsg v0.0.0-20220302151611-e4368629eed2
github.com/skycoin/skycoin v0.27.1
github.com/skycoin/yamux v0.0.0-20200803175205-571ceb89da9f
github.com/songgao/water v0.0.0-20200317203138-2b4b6d7c09d8
github.com/spf13/cobra v1.2.1
github.com/spf13/cobra v1.3.0
github.com/stretchr/testify v1.7.0
github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635
github.com/templexxx/cpufeat v0.0.0-20180724012125-cef66df7f161 // indirect
Expand All @@ -40,17 +39,17 @@ require (
github.com/xtaci/lossyconn v0.0.0-20200209145036-adba10fffc37 // indirect
go.etcd.io/bbolt v1.3.6
golang.org/x/net v0.0.0-20211020060615-d418f374d309
golang.org/x/sys v0.0.0-20211020174200-9d6173849985
golang.org/x/sys v0.0.0-20211205182925-97ca703d548d
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
golang.org/x/tools v0.1.2 // indirect
golang.org/x/tools v0.1.5 // indirect
golang.zx2c4.com/wireguard v0.0.0-20211012180210-dfd688b6aa7b
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
nhooyr.io/websocket v1.8.2
)

require (
github.com/go-chi/chi/v5 v5.0.8-0.20220103230436-7dbe9a0bd10f
github.com/james-barrow/golang-ipc v0.0.0-20210227130457-95e7cc81f5e2
github.com/skycoin/skywire-utilities v0.0.0-20220304110203-2c19051374a2
)

require (
Expand Down Expand Up @@ -84,7 +83,7 @@ require (
github.com/valyala/fastrand v1.1.0 // indirect
github.com/valyala/histogram v1.2.0 // indirect
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 // indirect
golang.org/x/mod v0.4.2 // indirect
golang.org/x/mod v0.5.0 // indirect
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
)
Expand Down
Loading

0 comments on commit 08d10f5

Please sign in to comment.