appendVendoringFlags checks for and appends vendored dependency flags to the command.
(cmd []string)
| 490 | |
| 491 | // appendVendoringFlags checks for and appends vendored dependency flags to the command. |
| 492 | func appendVendoringFlags(cmd []string) []string { |
| 493 | if vendorDir, isVendored := os.LookupEnv(VendorPipDepsEnv); isVendored { |
| 494 | buildermetrics.GlobalBuilderMetrics().GetCounter(buildermetrics.PipVendorDependenciesCounterID).Increment(1) |
| 495 | return append(cmd, "--no-index", "--find-links", vendorDir) |
| 496 | } |
| 497 | return cmd |
| 498 | } |
| 499 | |
| 500 | func isPackageManagerEmpty() bool { |
| 501 | return os.Getenv(env.PythonPackageManager) == "" |
no test coverage detected