Skip to content

Commit

Permalink
fix store
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktor Nosov committed Dec 3, 2023
1 parent 09fd054 commit 6f5118d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion service/ccpackage/packer/docker/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func (c *Container) DownloadPath(ctx context.Context, path string) ([]byte, erro
InactivityTimeout: 0,
Context: ctx,
}); err != nil {
err = fmt.Errorf("download path=%s from container: %w", path, err)
return nil, fmt.Errorf("download path=%s from container: %w", path, err)
}

pkgTar, err := UnTarFirstFile(outBf)
Expand Down
5 changes: 4 additions & 1 deletion service/ccpackage/packer/docker/packer.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,10 @@ func (p *Packer) PackFromFiles(ctx context.Context, spec *ccpackage.PackageSpec,
return nil, err
}

image, lifecycle, err := p.imageLifecycle(spec.Id.FabricVersion)
image, lifecycle, imageErr := p.imageLifecycle(spec.Id.FabricVersion)
if imageErr != nil {
return nil, imageErr
}
sourcePath := filepath.Join(containerSrcPath, spec.ChaincodePath)

p.logger.Info(`created container with mounted source code`,
Expand Down

0 comments on commit 6f5118d

Please sign in to comment.