mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
12 lines
283 B
Go
12 lines
283 B
Go
package util
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
func IsVendorDirExtractionEnabled() (bool, bool) {
|
|
oldOptionVal := os.Getenv("CODEQL_EXTRACTOR_GO_EXTRACT_VENDOR_DIRS")
|
|
return (oldOptionVal == "true" ||
|
|
os.Getenv("CODEQL_EXTRACTOR_GO_OPTION_EXTRACT_VENDOR_DIRS") == "true"), oldOptionVal != ""
|
|
}
|