mirror of
https://github.com/TECHNOFAB11/jsonnet-bundler.git
synced 2025-12-12 16:10:04 +01:00
additional error checking
This commit is contained in:
parent
93c18a7d4d
commit
5b12e9c798
1 changed files with 9 additions and 0 deletions
|
|
@ -171,8 +171,17 @@ func (p *GitPackage) Install(ctx context.Context, name, dir, version string) (st
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
||||||
r, err := os.Open(archiveFilepath)
|
r, err := os.Open(archiveFilepath)
|
||||||
|
if err != nil {
|
||||||
|
return "", err
|
||||||
|
}
|
||||||
|
|
||||||
err = gzipUntar(tmpDir, r, p.Source.Subdir)
|
err = gzipUntar(tmpDir, r, p.Source.Subdir)
|
||||||
|
if err != nil {
|
||||||
|
return "", err
|
||||||
|
}
|
||||||
|
|
||||||
return commitSha, nil
|
return commitSha, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue