Skip to content

Commit

Permalink
refactor(go-cli): replace unison with mutagen (wip)
Browse files Browse the repository at this point in the history
  • Loading branch information
eysi09 committed Feb 5, 2019
1 parent eae7398 commit b7a0d33
Show file tree
Hide file tree
Showing 12 changed files with 657 additions and 154 deletions.
215 changes: 197 additions & 18 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
name = "gopkg.in/yaml.v2"
version = "2.2.1"

[[constraint]]
name = "github.com/havoc-io/mutagen"
version = "v0.7.0-beta2"

# [[constraint]]
# branch = "master"
# name = "k8s.io/api"
Expand Down
5 changes: 5 additions & 0 deletions garden-cli/config.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"fmt"
"io/ioutil"
"log"
"os"
Expand Down Expand Up @@ -73,6 +74,10 @@ func getProjectID(projectDir string) string {
return projectID
}

func makeResourceName(prefix string, name string, id string) string {
return fmt.Sprintf("%s--%s-%s", prefix, name, id)
}

func getGardenHomeDir() string {
// TODO: allow override via env var
homeDir := util.GetHomeDir()
Expand Down
4 changes: 4 additions & 0 deletions garden-cli/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ const ServiceImage = "gardenengine/garden-service:latest"

// ProjectPath is where to find the code inside ServiceImage
const ProjectPath = "/project"

// Mutagen is the synchronization tool Garden uses for syncing files from
// the host into the sync container. Expects the following version.
const MutagenVersion = "0.7.0-beta2"
Loading

0 comments on commit b7a0d33

Please sign in to comment.