Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Ignoring Emacs' lock files: .#file.go #40

@tommie

Description

@tommie

Emacs writes a temporary file as soon as you start editing a file. When you hit save, it removes the temporary file.

This triggers gow, since the extension is still .go. It's a bit ugly, though perhaps not the end of the world.

To avoid flag chaos, I think reading patterns from a file is probably nicest, but I could imagine using .gitignore-style patterns fits more with gows current style.

Would you be open to an ignore prefix flag, an ignore pattern [1] flag, or perhaps reading a .gowignore file?

And thanks for writing gow! It replaces an inotifywatch | while read; go make ; done loop I've used previously. Much neater.

  1. E.g. using https://pkg.go.dev/github.com/sabhiram/go-gitignore

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions