Comments (9)
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.
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.
@DavidWatkins do you think your PR could have unintentionally changed this behavior?
from gitman.
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.
@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.
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.
@pritzvac Can you try my fix in PR #300 and see if it resolves your issue?
from gitman.
Yes, the PR fixed my issue, thanks.
from gitman.
Here's the updated release: https://pypi.org/project/gitman/3.3.3/
from gitman.
Related Issues (20)
- Install cannot mix sources and groups HOT 2
- YAML code highlighting is broken in the documentation HOT 1
- Default groups aren't honored for recursive installs/updates HOT 2
- Question: Is it possible to symlink a sub folder of the repository? HOT 5
- Using install and `--fetch`, gitman does not reset local branch to the remote version HOT 2
- Support for installing in "bare" with depth=1 and no .git folder HOT 4
- Document every field available in configuration files HOT 3
- Changes to 'sparse_paths' are not reflected on subsequent installs HOT 3
- UnicodeDecodeError occurs when running gitman update/install in Windows HOT 2
- Add dependencies from the CLI
- Clone sources in parallel
- Fix failing tests on Windows
- find_nested_configs does not use depth value or find depth > 2 packages HOT 2
- Authentication for HTTPS cloning HOT 7
- Support creating hard links (in additional to symlinks) HOT 7
- Detect changes in remote repositories when listing dependencies HOT 4
- filter_nested_configs is doing the opposite of what it should HOT 6
- About using gitman with CR/LF line ending setting HOT 2
- Reattach HEAD if revision is locked HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitman.