question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

```exclude``` seems to be ignored in linking

See original GitHub issue

Hello everyone, I have a zsh config folder in my .dotfiles, which looks like this:

zsh/alias.zsh
zsh/bindings.zsh
zsh/custom_completions/_docker-compose
zsh/custom_completions/_gh
zsh/env.zsh
zsh/functions.zsh
zsh/install_zsh.sh
zsh/options.zsh
zsh/plugins.txt
zsh/plugins.zsh
zsh/zshenv
zsh/zshrc

I also have my install.conf.yaml to try things out, which looks as follows:

- link:
    ~/.zshenv:
      path: zsh/zshenv
    ~/.config/zsh/:
      glob: true
      path: zsh/*
      exclude:
        - zsh/zshenv
        - zsh/zshrc

However, by the look of things my exlude is completely ignored:

Link exists ~/.zshenv -> /Users/USER/.dotfiles/zsh/zshenv
Globs from 'zsh/*': ['zsh/options.zsh', 'zsh/plugins.txt', 'zsh/alias.zsh', 'zsh/zshrc', 'zsh/zshenv', 'zsh/bindings.zsh', 'zsh/install_zsh.sh', 'zsh/functions.zsh', 'zsh/custom_completions', 'zsh/plugins.zsh', 'zsh/env.zsh']
Link exists ~/.config/zsh/options.zsh -> /Users/USER/.dotfiles/zsh/options.zsh
Link exists ~/.config/zsh/plugins.txt -> /Users/USER/.dotfiles/zsh/plugins.txt
Link exists ~/.config/zsh/alias.zsh -> /Users/USER/.dotfiles/zsh/alias.zsh
Creating link ~/.config/zsh/zshrc -> /Users/USER/.dotfiles/zsh/zshrc
Creating link ~/.config/zsh/zshenv -> /Users/USER/.dotfiles/zsh/zshenv
Link exists ~/.config/zsh/bindings.zsh -> /Users/USER/.dotfiles/zsh/bindings.zsh
Link exists ~/.config/zsh/install_zsh.sh -> /Users/USER/.dotfiles/zsh/install_zsh.sh
Link exists ~/.config/zsh/functions.zsh -> /Users/USER/.dotfiles/zsh/functions.zsh
Link exists ~/.config/zsh/custom_completions -> /Users/USER/.dotfiles/zsh/custom_completions
Link exists ~/.config/zsh/plugins.zsh -> /Users/USER/.dotfiles/zsh/plugins.zsh
Link exists ~/.config/zsh/env.zsh -> /Users/USER/.dotfiles/zsh/env.zsh

I tried all sorts of different approaches with exclude statement, however it keeps linking files, which I am trying to exclude.

Am I missing something here?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
etkeyscommented, Apr 5, 2021

Hi! What version of dotbot are you using? Can you run again with --verbose and provide the resulting output?

0reactions
arkAD93commented, Apr 6, 2021

When did you set up Dotbot? That may have been the latest version when you set it up. You can upgrade it with git submodule update --remote dotbot (remember to git commit your changes afterwards, or the ./install will revert it). Cannot say for sure, about 1-2h before opening the issue.

Looks like git submodule update --remote dotbot did the trick. I have no idea how I ended up with older version. Thanks for helping out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

git ignore vs. exclude vs. assume-unchanged - Stack Overflow
This seems similar to exclude , in that these files are neither "indexed" nor "tracked". However, the last version of the file to...
Read more >
What's the Difference Between Excluded URLs and Ignored ...
Excluded URLs allows you to specify a list of URLs you would not like to be optimized. You can either exclude a specific...
Read more >
gitignore Documentation - Git
A gitignore file specifies intentionally untracked files that Git should ignore. Files already tracked by Git are not affected; see the NOTES below...
Read more >
.gitignore file - ignoring files in Git | Atlassian Git Tutorial
Git ignore patterns are used to exclude certain files in your working directory from your Git history. They can be local, global, or...
Read more >
Ignoring files - GitHub Docs
Configuring ignored files for all repositories on your computer · Open TerminalTerminalGit Bash. · Configure Git to use the exclude file ~/.gitignore_global for ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found