(outDir *os.Root, linkPath, linkTarget string)
| 44 | } |
| 45 | |
| 46 | func createSymlink(outDir *os.Root, linkPath, linkTarget string) error { |
| 47 | outDir.Remove(linkPath) //nolint:errcheck |
| 48 | |
| 49 | return errors.Wrap(outDir.Symlink(linkTarget, linkPath), "error creating symlink") |
| 50 | } |
| 51 | |
| 52 | func stripLeadingPath(fname string, stripPathComponents int) (string, bool) { |
| 53 | if stripPathComponents == 0 { |