conventi on master
Adapt go modules Fix dependencies Remove Gopkg.toml and 1 more (compare)
I have args like this:
settings: legacy: force: false interval: 0s server: status: false open: false host: localhost port: 3000 schema: - name: xyz path: ./cmd/xyz-server commands: install: status: true run: status: true args: - --dbmigrationpath=store/xyz-migrations - --store=mysql - --rabbiturl=amqp://xyz:klp@localhost:1234/ - --slackHook= - --slackHookDisabled=true - --pipedrive=mock watcher: extensions: - go - html - js paths: - / ignored_paths: - .git - .realize - vendor
now I can not set a param to "" by defining it explicite to be "" as here:
If I ask viper for the param
slackHook := viper.GetString("slackHook") logrus.Infof("slackHook: %s", slackHook)
it returns next param definition instead:
I'm trying to bundle static assets with
shurcooL/vfsgen and then read straight from disk for local development, and for the last part I am relying on
os.Getwd(), but since my projects are nested under subdirectories with a 'global' realize-file for my monorepo, the workingdir is the root of the folder, rather than each projects path. And in some instances it's
$GOBIN which is less than ideal.
Ideally I want it to always read from git-root/third_party/x without having to pass in an extra argument to tell it where to read from.
settings: legacy: force: false interval: 0s schema: - name: api path: ./cmd/api commands: fmt: status: true install: status: true run: status: true watcher: extensions: - go paths: - / ignored_paths: - .git - .realize - vendor
once I run
realize start, it only watchs file changes under
Watching 1 file/s 1 folder/s
how could I let it watch the project folder?
schema: - name: embark commands: build: status: true method: go build -v -o embark ./cmd/embark/ test: status: true watcher: paths: - / ignored_paths: - vendor
build: status: true args: - -ldflags -X my/path/to/file.version=my-version
hi all - anyone running into this error using Go 1.11?
bash-4.4# GO111MODULE=on CGO_ENABLED=0 realize start [ ] : Watching 506 file/s 60 folder/s [ ][ ] : Install started [ ][ ] : Install exec: not started
hesitant to file a github issue as this could not be a realize thing, but I had this exact same configuration working with go 1.10.x and the only thing changed was the Golang upgrade and switching over to go modules
go build && run my projectbut i can not start realize
realize start main.go?
build: status: true, mode: go buildin .realize.yaml
go: found github.com/labstack/echo in github.com/labstack/echo v3.3.10+incompatible go: github.com/oxequa/realize imports gopkg.in/urfave/cli.v2: firstname.lastname@example.org: parsing go.mod: module declares its path as: github.com/urfave/cli/v2 but was required as: gopkg.in/urfave/cli.v2