Skip to content

Commit

Permalink
Ignore swag file from root dir only (#775)
Browse files Browse the repository at this point in the history
* Ignore swag file from root dir only

The rule `swag` matches not only file in main directory but also folder in `cmd/swag`.
I've changed it to match only in current folder. For visual I've changed also `swag.exe`.

I've run into issue when I tried to vendor sources for swag but also for tool. The main.go got ignored by git, I was required to `git add -f vendor/github.com/swaggo/swag/cmd/swag/main.go`

* Properly .gitignore from main folder only.
  • Loading branch information
arvenil committed Aug 18, 2020
1 parent 542e932 commit 1889a3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Expand Up @@ -16,5 +16,5 @@ cover.out
# Etc
.DS_Store

swag
swag.exe
/swag
/swag.exe

0 comments on commit 1889a3a

Please sign in to comment.