realize icon indicating copy to clipboard operation
realize copied to clipboard

install exec: not started

Open u007 opened this issue 6 years ago • 14 comments

ive a project based on go module, and on a new machine with latest realize, it somehow returns:

Watching 154 file/s 36 folder/s [11:55:29][....] : Install started [11:55:29][....] : Install exec: not started

settings:
  files:
    outputs:
      status: false
      path: ""
      name: .r.outputs.log
    logs:
      status: false
      path: ""
      name: .r.logs.log
    errors:
      status: false
      path: ""
      name: .r.errors.log
  legacy:
    force: false
    interval: 0s
schema:
- name: mypro
  path: .
  commands:
    run:
      status: true
  args:
    - serve
  watcher:
    extensions:
    - go
    - graphql
    paths:
    - /
    ignore:
      paths:
      - .git
      - .realize
      - vendor
      - .idea

u007 avatar Dec 28 '18 12:12 u007

Same here. News?

frederikhors avatar Dec 28 '18 16:12 frederikhors

Same thing as well. Downgrading to 2.0.1 works, but if you're using the latest release (eg. just doing go get ...), this error occurs.

Edit these other issues seem to be related as well:

  • https://github.com/oxequa/realize/issues/217
  • https://github.com/oxequa/realize/issues/199

jhartman86 avatar Dec 28 '18 19:12 jhartman86

@jhartman86 how to downgrade?

frederikhors avatar Dec 28 '18 21:12 frederikhors

@frederikhors this is what worked for me (note, this is within Docker, using the golang:1.11.3-alpine3.8 image):

#!/usr/bin/env bash

export GO111MODULE=off

cd ~/
go get github.com/oxequa/realize
cd /go/src/github.com/oxequa/realize && \
  git fetch && \
  git checkout v2.0.2 && \
  go get github.com/oxequa/realize

RV=$(realize --version)
echo "Realize installed @: $RV"

export GO111MODULE=on

Frankly, I've got no idea why checking out the tag and then running go get ... again works, but it does. YMMV

jhartman86 avatar Dec 29 '18 01:12 jhartman86

@frederikhors I've just solved this problem. In your .realize.yaml, path is "." As I wrote same setting, I got below error

exec: not started

So I changed path setting to below.

- name: mypro
  path: ./cmd/api/

Finally, realize could work without error. I hope this comment helps your issue.

yu19991013 avatar Feb 04 '19 13:02 yu19991013

didn't work for me , tired...

[13:26:05][GIN_APP] : Watching 5 file/s 1 folder/s
[13:26:05][GIN_APP] : Install started
[13:26:05][GIN_APP] : Install 
 exec: not started

chjiyun avatar Oct 05 '19 06:10 chjiyun

@jhartman86 it works successfull, 666~

chjiyun avatar Oct 05 '19 07:10 chjiyun

the lasted version 2.0.3,have the same error.

fordguo avatar Jan 02 '20 10:01 fordguo

I am also having the same problem. I'm subscribing for a fix 😄

danielo515 avatar Mar 05 '20 15:03 danielo515

Same problem Using it inside a container, get "exec: not started"

benc-uk avatar Apr 27 '20 07:04 benc-uk

Same here, also subscribing for solution

patrickhener avatar Jul 29 '20 20:07 patrickhener

metoo

settings:
  legacy:
    force: false
    interval: 0s
schema:
- name: apiserver
  path: .
  commands:
    fmt:
      status: true
    run:
      status: true
      method: echo 1111
  watcher:
    extensions:
    - go
    paths:
    - /
    ignored_paths:
    - .git
    - .realize
    - vendor

smithyj avatar Aug 07 '20 13:08 smithyj

same issue for me. my .realize.yaml

settings:
  legacy:
    force: false
    interval: 0s
schema:
  - name: go-server
    path: .
    commands:
      run:
        status: true
    watcher:
      extensions:
        - go
      paths:
        - /
      ignored_paths:
        - .git
        - .realize
        - vendor

myhendry avatar Mar 27 '21 06:03 myhendry

Adding install under commands, works for me.

    commands:
      install:
        status: true
        method: go install
      run:
        status: true

jeffreylean avatar Jan 04 '22 06:01 jeffreylean