MCPcopy Create free account
hub / github.com/jetify-com/devbox / copySymlink

Method copySymlink

internal/patchpkg/builder.go:251–261  ·  view source on GitHub ↗
(pkg, out *packageFS, path string)

Source from the content-addressed store, hash-verified

249}
250
251func (d *DerivationBuilder) copySymlink(pkg, out *packageFS, path string) error {
252 link, err := out.OSPath(path)
253 if err != nil {
254 return err
255 }
256 target, err := pkg.Readlink(path)
257 if err != nil {
258 return err
259 }
260 return os.Symlink(target, link)
261}
262
263func (d *DerivationBuilder) needsGlibcPatch(file *bufio.Reader, filePath string) bool {
264 if d.Glibc == "" || d.glibcPatcher == nil {

Callers 1

buildMethod · 0.95

Calls 2

OSPathMethod · 0.80
ReadlinkMethod · 0.80

Tested by

no test coverage detected