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.

conda-smithy init fails inside existing repo

See original GitHub issue

I don’t really remember if conda smithy init has ever worked for me. I remember that I have been doing it manually. Today, finally, I have decided to post the traceback.

$ conda smithy init some_dir/recipe
Traceback (most recent call last):
  File "/Users/shadow_walker/anaconda/bin/conda-smithy", line 6, in <module>
    sys.exit(conda_smithy.cli.main())
  File "/Users/shadow_walker/anaconda/lib/python2.7/site-packages/conda_smithy/cli.py", line 289, in main
    args.subcommand_func(args)
  File "/Users/shadow_walker/anaconda/lib/python2.7/site-packages/conda_smithy/cli.py", line 116, in __call__
    generate_feedstock_content(feedstock_directory, args.recipe_directory, meta)
  File "/Users/shadow_walker/anaconda/lib/python2.7/site-packages/conda_smithy/cli.py", line 27, in generate_feedstock_content
    configure_feedstock.copytree(source_recipe_dir, target_recipe_dir)
  File "/Users/shadow_walker/anaconda/lib/python2.7/site-packages/conda_smithy/configure_feedstock.py", line 519, in copytree
    copy_file(s, d)
  File "/Users/shadow_walker/anaconda/lib/python2.7/site-packages/conda_smithy/feedstock_io.py", line 87, in copy_file
    repo.index.add([dst])
  File "/Users/shadow_walker/anaconda/lib/python2.7/site-packages/git/index/base.py", line 745, in add
    entries_added.extend(self._entries_for_paths(paths, path_rewriter, fprogress, entries))
  File "/Users/shadow_walker/anaconda/lib/python2.7/site-packages/git/util.py", line 55, in wrapper
    return func(self, *args, **kwargs)
  File "/Users/shadow_walker/anaconda/lib/python2.7/site-packages/git/index/util.py", line 84, in set_git_working_dir
    return func(self, *args, **kwargs)
  File "/Users/shadow_walker/anaconda/lib/python2.7/site-packages/git/index/base.py", line 631, in _entries_for_paths
    entries_added.append(self._store_path(filepath, fprogress))
  File "/Users/shadow_walker/anaconda/lib/python2.7/site-packages/git/index/base.py", line 590, in _store_path
    st = os.lstat(filepath)     # handles non-symlinks as well
OSError: [Errno 2] No such file or directory: './szip-feedstock/recipe/bld.bat'

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
jakirkhamcommented, Feb 19, 2017

Can you clarify “inside of an existing directory”?

Please see the edit above.

0reactions
shadowwalkersbcommented, Feb 20, 2017

However, creating a full blown repo inside of another repo can result in confusion and problems down the line. Not to mention this will result in commits with binary blobs of this repo inside of the other repo for any change that occurs (including git gc). This will also lead to performance issues down the line.

I may not be a git expert and I don’t claim that my git setup is ideal. But, AFAIK nested repos that are not submodules or subtrees are simply ignored by the parent repo. So, I don’t believe nested repos are that dangerous or dangerous at all. At least, I haven’t had any problems with my setup.

Discouraging such nested git repos, in a way, sounds like, you can’t have your bashrc types of files under version control, because your whole user account would be a git repo and everything else under it would be a nested repo. Another use case is keeping IDE settings under version control. For example, Eclipse has the concept of workspaces where project data and settings are saved. Well, all those projects may be git repos. Then, the suggestion is that I can’t keep my eclipse under version control unless my other projects are made submodules of my settings repo. Just doesn’t sound natural.

Although, my use cases are, pretty legit if you ask me, 😉 , I’m not asking for any unnecessary efforts put into conda-smithy development. Will take a look at PR #460 and thanks for putting it together!

Read more comments on GitHub >

github_iconTop Results From Across the Web

conda-forge/conda-smithy: The tool for managing ... - GitHub
conda-smithy is a tool for combining a conda recipe with configurations to build using freely hosted CI services into a single repository, also...
Read more >
"Reinitialized existing Git repository" message in completely ...
Running git init in an existing repository is safe. It will not overwrite things that are already there. Share.
Read more >
conda-smithy: an easy way to build and deploy your ... - Medium
conda-smithy is used by conda-forge to create your feedstock when you make a pull request on the repo for your recipe. Then it...
Read more >
GitPython Tutorial — GitPython 3.1.29 documentation
Clone from existing repositories or initialize new empty ones. cloned_repo = repo.clone(os.
Read more >
Fix Git's 'fatal: repository not found' error quickly | TheServerSide
Here are five ways to fix that problem and successfully clone, ... cloning the existing source code repo only to run head first...
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