mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
Go: Fix vendor issues and go.sum files in separate loop
This commit is contained in:
@@ -553,14 +553,17 @@ func installDependenciesAndBuild() {
|
||||
// Track all projects which could not be extracted successfully
|
||||
var unsuccessfulProjects = []string{}
|
||||
|
||||
// Attempt to extract all workspaces; we will tolerate individual extraction failures here
|
||||
for i, workspace := range workspaces {
|
||||
// Attempt to automatically fix issues with each workspace
|
||||
for _, workspace := range workspaces {
|
||||
goVersionInfo := workspace.RequiredGoVersion()
|
||||
|
||||
fixGoVendorIssues(&workspace, goVersionInfo != nil)
|
||||
|
||||
tryUpdateGoModAndGoSum(workspace)
|
||||
}
|
||||
|
||||
// Attempt to extract all workspaces; we will tolerate individual extraction failures here
|
||||
for i, workspace := range workspaces {
|
||||
// check whether an explicit dependency installation command was provided
|
||||
inst := util.Getenv("CODEQL_EXTRACTOR_GO_BUILD_COMMAND", "LGTM_INDEX_BUILD_COMMAND")
|
||||
shouldInstallDependencies := false
|
||||
|
||||
Reference in New Issue
Block a user