GithubHelp home page GithubHelp logo

save fails when copying sym links about godep HOT 4 CLOSED

tools avatar tools commented on May 27, 2024
save fails when copying sym links

from godep.

Comments (4)

kr avatar kr commented on May 27, 2024

Hopefully de4fb95 has fixed this satisfactorily.

Please reopen this issue (or open a new one) if there's still a problem.

from godep.

fkm3 avatar fkm3 commented on May 27, 2024

Sorry for the slow reply.

It doesn't choke on the sym link now, but the code in github.com/valyala/ybc/bindings/go/ybc/ has C dependencies in github.com/valyala/ybc/ that don't get copied. Maybe that is out of scope for this tool? Seems like I can just copy them manually for now.

from godep.

vcaputo avatar vcaputo commented on May 27, 2024

@kr It needs to recur at the symlink, not simply preserve the symlink.

Imagine a project foo.com/bar where the directory structure is like this:

bin/
doc/
some_pkg -> src/some_pkg
src/
Makefile
README

The symlink is included just to cleanup the import path of some_pkg for external users:
import "foo.com/bar/some_pkg"
vs.
import "foo.com/bar/src/some_pkg"

While still allowing the project to have a clean separation of the code from everything else in the directory structure.

But if a project imports the path at the symlink and godep save is used, all it saves is the symlink.

from godep.

kr avatar kr commented on May 27, 2024

Godep can't simply follow symlinks, because that can result in pathological behavior. (Consider a symlink that points to its parent directory.) Godep is in a similar situation to the standard go tool with respect to symlinks. As Ian Lance Taylor put it:

Yes. In general the go tool does not work well with symlinks. There
is no current plan to change this. Any fix would have to describe a
complete and coherent solution for how symlinks should be handled. I
don't know what that would look like.

Godep is in the same boat.

from godep.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.