Skip to content

Commit 8b4a5af

Browse files
committed
Do not require custom runtime path for portable projects.
1 parent 574ff6b commit 8b4a5af

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/state/internal/cmdtree/checkout.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func newCheckoutCommand(prime *primer.Values) *captain.Command {
2828
},
2929
{
3030
Name: "portable",
31-
Description: locale.Tl("flag_state_checkout_portable_description", "Copy files to runtime-path instead of linking to them"),
31+
Description: locale.Tl("flag_state_checkout_portable_description", "Copy files to their runtime path instead of linking to them"),
3232
Value: &params.Portable,
3333
},
3434
{

pkg/project/project.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ func (p *Project) Lock() string { return p.projectfile.Lock }
255255
// Cache returns the cache information for this project
256256
func (p *Project) Cache() string { return p.projectfile.Cache }
257257

258-
func (p *Project) IsPortable() bool { return p.projectfile.Portable && p.projectfile.Cache != "" }
258+
func (p *Project) IsPortable() bool { return p.projectfile.Portable }
259259

260260
// Namespace returns project namespace
261261
func (p *Project) Namespace() *Namespaced {

0 commit comments

Comments
 (0)