2021-04-01 13:41:09 -04:00
|
|
|
// Copyright 2021 The Gitea Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a MIT-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
package analyze
|
|
|
|
|
|
|
|
import (
|
2022-05-06 05:12:30 -04:00
|
|
|
"github.com/go-enry/go-enry/v2"
|
2021-04-01 13:41:09 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
// IsVendor returns whether or not path is a vendor path.
|
|
|
|
func IsVendor(path string) bool {
|
2022-05-06 05:12:30 -04:00
|
|
|
return enry.IsVendor(path)
|
2021-04-01 13:41:09 -04:00
|
|
|
}
|