GithubHelp home page GithubHelp logo

Comments (5)

lightsofapollo avatar lightsofapollo commented on May 24, 2024

:/ yeah hitting this too underlying issue is we need path resolvepath/realpath (which seems to only be part of the rust compiler at this stage)

from git2-rs.

alexcrichton avatar alexcrichton commented on May 24, 2024

cc rust-lang/rust#11857 (issue for realpath)

from git2-rs.

thommay avatar thommay commented on May 24, 2024

So this (I assume) winds up screwing me when I do cargo new:

> cargo new  --travis --git --verbose glacier-rs
Failed to create project `glacier-rs` at `/Users/thom/projects/glacier-rs`

Caused by:
  [2] Could not find '~/lib/git/' to stat: No such file or directory

> git config --get init.templatedir
~/lib/git
> ls -la ~/lib/git
lrwxr-xr-x  1 thom  staff  29 25 Jun 18:20 /Users/thom/lib/git -> /Users/thom/.dotfiles/lib/git

Changing init.templatedir to be /Users/thom/.dotfiles/lib/git allows cargo new to complete successfully.

from git2-rs.

alexcrichton avatar alexcrichton commented on May 24, 2024

Hm I'd be surprised if this affected cargo new, as this specific issue I believe is only related to assertions in tests.

If you change init.templatedir to /Users/thom/lib/git, does that allow cargo new to succeed? I'm curious if libgit2 is misinterpreting the ~ in the config option.

from git2-rs.

thommay avatar thommay commented on May 24, 2024

ah, my bad jumping on issues. Yes, it works correctly given the full path
to the symlink.

On Tue, Dec 23, 2014 at 7:39 PM, Alex Crichton [email protected]
wrote:

Hm I'd be surprised if this affected cargo new, as this specific issue I
believe is only related to assertions in tests.

If you change init.templatedir to /Users/thom/lib/git, does that allow cargo
new to succeed? I'm curious if libgit2 is misinterpreting the ~ in the
config option.


Reply to this email directly or view it on GitHub
https://github.com/alexcrichton/git2-rs/issues/20#issuecomment-67990067.

from git2-rs.

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.