Skip to content

Commit

Permalink
Always Set Layer Flags
Browse files Browse the repository at this point in the history
In preparation for Opt In Layer Caching (RFC0052) any layer that is
contributed should always set its layer flags.  This change adds that to the
LayerContributor contract.

Signed-off-by: Ben Hale <[email protected]>
  • Loading branch information
nebhale committed Aug 25, 2020
1 parent 4e9c791 commit 24b4428
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gradle/distribution.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,8 @@ func (d Distribution) Contribute(layer libcnb.Layer) (libcnb.Layer, error) {
return libcnb.Layer{}, fmt.Errorf("unable to expand Gradle\n%w", err)
}

layer.Cache = true
return layer, nil
})
}, libpak.CacheLayer)
}

func (d Distribution) Name() string {
Expand Down

0 comments on commit 24b4428

Please sign in to comment.