Skip to content

Commit

Permalink
Add modification option
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomasz-Smelcerz-SAP committed Jan 30, 2024
1 parent d67f5ce commit a74a3b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/module/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"github.com/open-component-model/ocm/pkg/common/accessobj"
"github.com/open-component-model/ocm/pkg/contexts/ocm/compdesc"
ocmv1 "github.com/open-component-model/ocm/pkg/contexts/ocm/compdesc/meta/v1"
"github.com/open-component-model/ocm/pkg/contexts/ocm/cpi"
"github.com/open-component-model/ocm/pkg/contexts/ocm/repositories/comparch"
"github.com/pkg/errors"
"go.uber.org/zap"
Expand Down Expand Up @@ -117,7 +118,7 @@ func addBlob(fs vfs.FileSystem, archive *comparch.ComponentArchive, resource *Re
return err
}

return archive.SetResource(&resource.ResourceMeta, blobAccess)
return archive.SetResource(&resource.ResourceMeta, blobAccess, cpi.ModifyResource(true))
}

func (rd ResourceDescriptor) String() string {
Expand Down

0 comments on commit a74a3b8

Please sign in to comment.