by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 11 12:36
    aaad opened #268
  • May 11 11:38
    aaad commented #258
  • May 10 23:39
    Madh93 opened #267
  • May 07 22:21
    divoxx closed #218
  • May 06 04:35
    irvinlim commented #266
  • May 05 05:59
    yyh-gl closed #266
  • May 05 05:59
    yyh-gl commented #266
  • May 04 21:51

    conventi on master

    Adapt go modules Fix dependencies Remove Gopkg.toml and 1 more (compare)

  • May 04 21:51
    conventi closed #265
  • Apr 29 15:18
    yyh-gl commented #262
  • Apr 29 14:37
    yyh-gl edited #266
  • Apr 29 14:30
    yyh-gl edited #266
  • Apr 29 14:29
    yyh-gl edited #266
  • Apr 29 14:28
    yyh-gl edited #266
  • Apr 29 14:28
    yyh-gl edited #266
  • Apr 29 14:21
    yyh-gl commented #261
  • Apr 29 14:19
    yyh-gl edited #265
  • Apr 29 14:18
    yyh-gl closed #261
  • Apr 29 14:18
    yyh-gl commented #261
  • Apr 29 14:16
    yyh-gl closed #262
budineverend
@budineverend
Capture.PNG
my data still doenst display it
settings:
  files:
    outputs:
      status: true
      path: ""
      name: .r.outputs.log
    logs:
      status: true
      path: ""
      name: .r.logs.log
    errors:
      status: true
      path: ""
      name: .r.errors.log
  flimit: 1000
  legacy:
    force: true
    interval: 100ms
server:
  status: true
  open: false
  port: 8000
  host: localhost
schema:
- name: Restapi
  path: C:\Users\yiqiang\go\src\Restapi
  commands: {}
  watcher:
    extensions:
    - go
    paths:
    - /
    ignored_paths:
    - .git
    - .realize
    - vendor
i already do step by step as the realize init
Maciej Niemczyk
@Macilias
hi, is there any documentation on realize with params backed by viper?
Maciej Niemczyk
@Macilias

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:

 - --slackHook=

If I ask viper for the param

slackHook := viper.GetString("slackHook") 
logrus.Infof("slackHook: %s", slackHook)

it returns next param definition instead:

slackHook: --slackHookDisabled
Alessio Pracchia
@Asoseil
What’s viper?
Maciej Niemczyk
@Macilias
Viper is a complete configuration solution for Go applications including 12-Factor apps. It is designed to work within an application, and can handle all types of configuration needs and formats.... https://github.com/spf13/viper
Jens Ulrich Hjuler Pedersen
@Multiply

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.

Any ideas?

Jay Ma
@imjm
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 cmd/api

Watching 1 file/s 1 folder/s

how could I let it watch the project folder?

rafal-kowal
@rafal-kowal
Hi guys, I have a quick question. Does realize not work with Windows or am I doing something wrong?
I am using Windows 10 with linux sub-system and docker-compose. My web app loads up just fine but it does not trigger new builds on saving changes to code.
AnPiakhota
@AnPiakhota
Hello. I have a small question and maybe you have ready answer. I'm implementing a web application that launches server on some port and is listening for requests. Everything is Ok when I start realize but on the next save I have this error "listen tcp :8085: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted". Is this something to solve easily by configuring?
ninedraft
@ninedraft
Hello there. Is it considered a bug that enabled test task doesn't run on file changes? Build task runs properly. Config:
    schema:
    - name: embark
      commands:
        build:
          status: true
          method: go build -v -o embark ./cmd/embark/
        test:
          status: true
      watcher:
        paths:
        - /
        ignored_paths:
        - vendor
Odell Joseph
@dragonpiper
commands in the the doc doesn't seem to work. commands run based on status , flags change nothing. Adding args like -v -cover to the test command just runs as normal.
Savas Vedova
@svedova
Hey guys, is there any way to pass ldflags to the build command in the realize config file?
I tried this but it fails cuz it can't find the package:
build:
  status: true
  args:
    - -ldflags -X my/path/to/file.version=my-version
David Wieczorek
@david-wieczorek
Hi guys, how could I solve this problem, installation OK but zsh problem, thanks ? zsh: command not found: realize
Jono Hartman
@jhartman86

hi all - anyone running into this error using Go 1.11?

bash-4.4# GO111MODULE=on CGO_ENABLED=0 realize start
[02:55:55][ZEROCARD] : Watching 506 file/s 60 folder/s
[02:55:55][ZEROCARD] : Install started
[02:55:55][ZEROCARD] : 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

Antoine Toussaint
@AntoineToussaint
Quick question: I have a cmd folder and a pkg folder, I want to start cmd/main.go but also watch pkg, from the command line: is there a way?
pedropovw
@pedropovw
Hi guys, one question. I'm new on Go and realize... i was using realize without any issue in my project with standard configuration, but today i've init module into my project and from that moment i can not make realize works..... Anything that i'm mising on the configuration to be able to work with modules?
i'm able to go build && run my project but i can not start realize
ahummel25
@ahummel25
How do I get relize to run my main.go file?
realize*
So I have a project under $GOPATH/src/server/main.go. Do I run realize start main.go?
Edward Cheadle
@echeadle
I don't see a lot of activity on this site. I am having lots of issues with realize. When I run realize init it never breaks out of the loop. ANd I had to read most of the posts in this conversation to find "realize start --run"command would work. This made the example I found in: Setting up your Go Development Docker Environment by liz rice work. Nowhere in the documentation or in the Book did I see that. liz said "realize run", the documentation on the site says "realize start". If you do realize start --help you will see a bunch of commands. go install , go run and go build are disabled by default. A reasonable default, but the documentation does not give much help. realize start --run will run go run and then things work. You need to be in the project folder.I assume it looks for the main.go file so you don't have to add it to the command.
Benjamin Bordel
@BenjaminB64
Hello here, someone tried realize with go 1.12 ? Someone else got these errors ?
image.png
Niels Hofmans
@hazcod
Hi,realize does not build my app on first run. any ideas?
I have run: true and build: status: true, mode: go build in .realize.yaml
Erick Gomez
@rckgomz
Hi, how I can use realize and go mod ?
compact722
@compact722
anybody else have an issue with realize and windows 10? says the files are being watched but it never picks up if there was a modification
works fine on MAC but not windows
compact722
@compact722
@rafal-kowal did you manage to get this to work?
Prathamesh Juvatkar
@prats226
Is there some timeout in run operation?
Somehow sometimes after adding some heavy operation in go before starting api server doesn't start api server ever. The application hangs.
After debugging with print logs, the location till which execution reaches changes after refactor
I am running realize inside docker
Prathamesh Juvatkar
@prats226
Found another bug:
Forrest Ledbetter Jahnel Group
@forrest321
hello all. just submitted a PR for the examples: oxequa/realize-examples#8 just moved the .realize.yaml files out of the folders as the folders were replaced with a single file.
Asaduzzaman Pavel
@k1ng440
how is it going guyss
guys*
i am trying to run go app with dlv but on restart the app staying alive, just the dlv being killed
how do i fix this?
Sebastian Serrano
@sebastianserrano
This might sound stupid but...I am trying to replicate a js development environment where I can simply do nodemon index.js and my server starts. When I do "realize start", the library begins to listen for changes but my main "main.go" script doesnt compile and run like "go run main.go" would. What am I missing?
Sebastian Serrano
@sebastianserrano
for anybody wasting their time with realize, a simple 'nodemon --exec "go run" main.go' will do the job
Andres Ramirez R
@anram88
hi all, i have been using realizd for the last couple months in a docker container. Today i started up the container and im getting this err
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: gopkg.in/urfave/cli.v2@v2.1.1: parsing go.mod:
        module declares its path as: github.com/urfave/cli/v2
                but was required as: gopkg.in/urfave/cli.v2
can anyone help ?
mikwys
@mikwys
hello all. @compact722 @rafal-kowal i have same problem; do you have maybe some pointers by now? would really appreciate :) thanks