Skip to content

Commit

Permalink
chore: Check out /jx-requirements.yml sparsely
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinPJK committed Nov 7, 2024
1 parent c836b2c commit 3ee7d12
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/variablefinders/requirements.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,11 @@ func GetSettings(g gitclient.Interface, jxClient jxc.Interface, ns, dir, owner,
return nil, "", errors.New("failed to find a dev environment source url on development environment resource")
}
}
clusterDir, err := requirements.PartialCloneClusterRepo(g, gitURL, true, sourceconfigs.SourceConfigFile)
combinedConfigFiles := []string{"/" + jxcore.RequirementsConfigFileName, sourceconfigs.SourceConfigFile}
if len(combinedConfigFiles) == 0 {
return nil, "", errors.New("combined config files are empty")
}
clusterDir, err := requirements.PartialCloneClusterRepo(g, gitURL, true, combinedConfigFiles...)
if err != nil {
return nil, "", err
}
Expand Down

0 comments on commit 3ee7d12

Please sign in to comment.