From 13478f80343169502c9df09a265808adb1350b7f Mon Sep 17 00:00:00 2001 From: Victor Vieux Date: Mon, 3 Jun 2013 17:25:51 +0000 Subject: [PATCH] remove TrimLeft as it's go1.1 Upstream-commit: 854039b6ba9c707af07f9966b39150ce23150920 Component: engine --- components/engine/changes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/engine/changes.go b/components/engine/changes.go index e50b88758a..dc1b015726 100644 --- a/components/engine/changes.go +++ b/components/engine/changes.go @@ -65,7 +65,7 @@ func Changes(layers []string, rw string) ([]Change, error) { file := filepath.Base(path) // If there is a whiteout, then the file was removed if strings.HasPrefix(file, ".wh.") { - originalFile := strings.TrimPrefix(file, ".wh.") + originalFile := file[len(".wh."):] change.Path = filepath.Join(filepath.Dir(path), originalFile) change.Kind = ChangeDelete } else {