Skip to content

Commit

Permalink
fix import project from file
Browse files Browse the repository at this point in the history
  • Loading branch information
moshe-kabala committed Jan 8, 2025
1 parent 2f84f45 commit 7838623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/hub/project_tar.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func ExtractProjectContextFromTar(tarStream io.Reader) (*ProjectContext, error)
}

if header.Typeflag == tar.TypeReg {
if header.Name == "project.json" {
if strings.HasSuffix(header.Name, "project.json") {
foundFilesCount++
err := json.NewDecoder(tarReader).Decode(&projectMeta)
if err != nil {
Expand Down

0 comments on commit 7838623

Please sign in to comment.