Git Product home page Git Product logo

Comments (9)

jacebrowning avatar jacebrowning commented on September 21, 2024

I'm not aware of a change that would cause that. What version are you using? Can you pinpoint which version introduced the new behavior?

from gitman.

pritzvac avatar pritzvac commented on September 21, 2024

I'm using version 3.3.2, which seems to be the version that introduced it. When I downgrade to 3.3.1, it doesn't happen. I guess it probably changed with pull request #295

from gitman.

jacebrowning avatar jacebrowning commented on September 21, 2024

@DavidWatkins do you think your PR could have unintentionally changed this behavior?

from gitman.

DavidWatkins avatar DavidWatkins commented on September 21, 2024

My changes caused this change, but this is because of how find_nested_configs works. To fix this we'd have to change the way find_nested_configs works to instead install nested configs in isolation rather than building up a global config for the top level repository. To get the old functionality you could use --depth 2 when installing in the meantime.

from gitman.

DavidWatkins avatar DavidWatkins commented on September 21, 2024

@pritzvac Do you have an example config I can look at? I am trying to see where it would incorrectly symlink but L400 of gitman/models/config.py uses the current subdirectory as the root and shouldn't be symlinking from the parent directory.

from gitman.

pritzvac avatar pritzvac commented on September 21, 2024

Sure, thanks for looking into it. Here's a quick example config I made, linking to subrepository with this config: https://github.com/ctu-mrs/octomap_mapping_planning/blob/master/.gitman.yml

location: .gitman
sources:
  - repo: https://github.com/ctu-mrs/octomap_mapping_planning.git
    name: octomap_mapping_planning
    rev: master
    type: git
    params:
    sparse_paths:
      -
    links:
      - source: ''
        target: ros_packages/octomap_mapping_planning
groups:
  -
default_group: ''

It actually works fine when I call gitman install for the first time, but then it changes the symlinks in the subrepository, when I call it for a second time.

from gitman.

DavidWatkins avatar DavidWatkins commented on September 21, 2024

@pritzvac Can you try my fix in PR #300 and see if it resolves your issue?

from gitman.

pritzvac avatar pritzvac commented on September 21, 2024

Yes, the PR fixed my issue, thanks.

from gitman.

jacebrowning avatar jacebrowning commented on September 21, 2024

Here's the updated release: https://pypi.org/project/gitman/3.3.3/

from gitman.

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.