Nothing Special   »   [go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go clean not work #175

Closed
dfang opened this issue Apr 14, 2018 · 2 comments
Closed

go clean not work #175

dfang opened this issue Apr 14, 2018 · 2 comments
Assignees

Comments

@dfang
Copy link
dfang commented Apr 14, 2018
settings:
  legacy:
    force: true
    interval: 100ms
server:
  status: true
  open: true
  port: 5002
  host: localhost
schema:
- name: martini-example
  path: .
  commands:
    clean:
      status: true
    vet:
      status: true
    fmt:
      status: true
    test:
      status: true
    generate:
      status: true
    install:
      status: true
    build:
      status: true
    run:
      status: true
  watcher:
    paths:
    - /
    extensions:
    - go
    ignored_paths:
    - .git
    - .realize
    - vendor
    scripts:
      - type: before
        command: echo before global
        global: true
        output: true
      - type: before
        command: echo before change
        output: true
      - type: after
        command: echo after change
        output: true
      - type: after
        command: echo after global
        global: true
        output: true

server.go

package main

import (
	"github.com/go-martini/martini"
)

func main() {
	m := martini.Classic()
	m.Get("/", func() string {
		return "Hello world"
	})
	m.Run()
}

there is still an executable file in the project.

fmt also not work, is there something wrong with my config ?

asoseil added a commit that referenced this issue Apr 14, 2018
@asoseil
Copy link
Contributor
asoseil commented Apr 14, 2018

Fixed on develop and merged

@asoseil asoseil closed this as completed Apr 14, 2018
@dfang
Copy link
Author
dfang commented Apr 15, 2018
    ignored_paths:
    - .git

ignore does not work, log

> realize s
[00:07:19][NEWS] : Watching 76 file/s 275 folder/s
[00:07:19][NEWS] : Install started
[00:07:20][NEWS] : Install completed in 0.198 s
[00:07:20][NEWS] : Build started
[00:07:20][NEWS] : Build completed in 0.204 s

if .git ignored by watcher, there is no 275 folders

@asoseil asoseil self-assigned this Apr 15, 2018
asoseil added a commit that referenced this issue Apr 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants