2021-04-02 01:41:09 +08:00
|
|
|
// Copyright 2021 The Gitea Authors. All rights reserved.
|
2022-11-28 02:20:29 +08:00
|
|
|
// SPDX-License-Identifier: MIT
|
2021-04-02 01:41:09 +08:00
|
|
|
|
|
|
|
package analyze
|
|
|
|
|
|
|
|
import (
|
2022-05-06 17:12:30 +08:00
|
|
|
"github.com/go-enry/go-enry/v2"
|
2021-04-02 01:41:09 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
// IsVendor returns whether or not path is a vendor path.
|
|
|
|
func IsVendor(path string) bool {
|
2022-05-06 17:12:30 +08:00
|
|
|
return enry.IsVendor(path)
|
2021-04-02 01:41:09 +08:00
|
|
|
}
|