conda-smithy init fails inside existing repo
See original GitHub issueI 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:
- Created 7 years ago
- Reactions:1
- Comments:16 (16 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Please see the edit above.
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!