mirror of
https://github.com/casbin/bee.git
synced 2025-07-20 09:14:20 +08:00
fix #332 swagger generate bug on windows
This commit is contained in:
2
bee.go
2
bee.go
@ -160,7 +160,7 @@ func main() {
|
||||
|
||||
// Check if current directory is inside the GOPATH,
|
||||
// if so parse the packages inside it.
|
||||
if strings.Contains(currentpath, GetGOPATHs()[0]+"/src") && isGenerateDocs(cmd.Name(), args) {
|
||||
if IsInGOPATH(currentpath) && isGenerateDocs(cmd.Name(), args) {
|
||||
parsePackagesFromDir(currentpath)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user