Skip to content

Commit

Permalink
Merge branch 'main' into workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
spatocode authored Sep 16, 2023
2 parents df6685a + 0089d73 commit dd8bfd9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/python.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ func (p *Python) installNecessaryDependencies(dir, sitePackages string, dependen
var eg errgroup.Group

for project, version := range dependencies {
func (dep, ver string) {
eg.Go(func () error {
func(dep, ver string) {
eg.Go(func() error {
url := fmt.Sprintf("https://pypi.org/pypi/%s/json", dep)
res, err := utils.Request(url)
if err != nil {
Expand Down Expand Up @@ -243,8 +243,8 @@ func (p *Python) extractWheel(wheelPath, outputDir string) error {
defer reader.Close()

for _, file := range reader.File {
func (file *zip.File) {
eg.Go(func () error {
func(file *zip.File) {
eg.Go(func() error {
os.MkdirAll(filepath.Join(outputDir, filepath.Dir(file.Name)), 0755)
if err != nil {
return err
Expand Down

0 comments on commit dd8bfd9

Please sign in to comment.