Can't add repos other than the github.com/autopkg repo

741 views
Skip to first unread message

Trouton, Rich R

unread,
Dec 31, 2013, 9:02:37 AM12/31/13
to autopkg...@googlegroups.com
I just updated to autopkg 0.2.5 and it looks like I no longer have the ability to add repos other than ones hosted at https://github.com/autopkg. Am I doing something incorrectly, or is this a bug?

Output below:

-----
troutont-wm1:~ troutont$ autopkg version
0.2.5
troutont-wm1:~ troutont$ autopkg repo-add https://github.com/rtrouton/AutoPkg
Attempting git clone...
ERROR: fatal: repository 'https://github.com/autopkg/https://github.com/rtrouton/AutoPkg/' not found

Updated search path:
'.'
'~/Library/AutoPkg/Recipes'
'/Library/AutoPkg/Recipes'
'/Users/troutont/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes'
troutont-wm1:~ troutont$ autopkg repo-add https://github.com/rtrouton/AutoPkg.git
Attempting git clone...
ERROR: fatal: repository 'https://github.com/autopkg/https://github.com/rtrouton/AutoPkg.git/' not found

Updated search path:
'.'
'~/Library/AutoPkg/Recipes'
'/Library/AutoPkg/Recipes'
'/Users/troutont/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes'
troutont-wm1:~ troutont$

-----

Thanks,
Rich

---
Rich Trouton
trou...@janelia.hhmi.org

JFRC Help Desk
phone: x4030
email: help...@janelia.hhmi.org

The best way to get in touch with me is through email.

Gregory Neagle

unread,
Dec 31, 2013, 10:31:11 AM12/31/13
to autopkg...@googlegroups.com
Working here.

I just did  `git pull` to make sure I had the current code from GitHub, then:

Attempting git clone...
Cloning into '/Users/gneagle/Library/AutoPkg/RecipeRepos/com.github.rtrouton.AutoPkg'...
Checking connectivity... done

Adding /Users/gneagle/Library/AutoPkg/RecipeRepos/com.github.rtrouton.AutoPkg to RECIPE_SEARCH_DIRS...
Updated search path:
  '.'
  '~/Library/AutoPkg/Recipes'
  '/Library/AutoPkg/Recipes'
  '/Users/gneagle/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes'
  '/Users/gneagle/Library/AutoPkg/RecipeRepos/com.github.rtrouton.AutoPkg'

I wonder why you are seeing the very strange URL in the error:   'https://github.com/autopkg/https://github.com/rtrouton/AutoPkg/' not found

-Greg

--
You received this message because you are subscribed to the Google Groups "autopkg-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to autopkg-discu...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Trouton, Rich R

unread,
Dec 31, 2013, 12:55:33 PM12/31/13
to <autopkg-discuss@googlegroups.com>
I was able to reproduce the error using the following process:


1. Uninstall AutoPkg by removing the following files and directories:

/Users/troutont/Library/AutoPkg
/Library/AutoPkg
/Library/LaunchDaemons/com.github.autopkg.autopkgserver.plist
/Users/troutont/Library/Preferences/com.github.autopkg.plist

2. Restart Mac.

3. Reinstall AutoPkg by using the AutoPkg 0.2.4 installer available from here:


4. Verify that I can add repos with 0.2.4

------

troutont-wm1:~ troutont$ autopkg repo-add https://github.com/rtrouton/AutoPkg
Attempting git clone...
Cloning into '/Users/troutont/Library/AutoPkg/RecipeRepos/com.github.rtrouton.AutoPkg'...
Checking connectivity... done

Adding /Users/troutont/Library/AutoPkg/RecipeRepos/com.github.rtrouton.AutoPkg to RECIPE_SEARCH_DIRS...
Updated search path:
  '.'
  '~/Library/AutoPkg/Recipes'
  '/Library/AutoPkg/Recipes'
  '/Users/troutont/Library/AutoPkg/RecipeRepos/com.github.rtrouton.AutoPkg'
troutont-wm1:~ troutont$ autopkg repo-add https://github.com/autopkg/recipes
Attempting git clone...
Cloning into '/Users/troutont/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes'...
Checking connectivity... done

Adding /Users/troutont/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes to RECIPE_SEARCH_DIRS...
Updated search path:
  '.'
  '~/Library/AutoPkg/Recipes'
  '/Library/AutoPkg/Recipes'
  '/Users/troutont/Library/AutoPkg/RecipeRepos/com.github.rtrouton.AutoPkg'
  '/Users/troutont/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes'
troutont-wm1:~ troutont$ autopkg list-recipes

------

5. Use AutoPkg to build a AutoPkg 0.2.5 installer package.

------

troutont-wm1:~ troutont$ autopkg run AutoPkg.pkg
Processing AutoPkg.pkg...

The following new items were downloaded:
    /Users/troutont/Library/AutoPkg/Cache/com.github.autopkg.autopkg/downloads/autopkg.zip

The following packages were built:
    Identifier               Version          Pkg path                        
    ----------               -------          --------                        
    com.github.autopkg.autopkg 0.2.5            /Users/troutont/Library/AutoPkg/Cache/com.github.autopkg.autopkg/autopkg-0.2.5.pkg

------

6. Install AutoPkg 0.2.5 using the AutoPkg 0.2.5 installer package.

7. Delete the existing AutoPkg repos.

------

troutont-wm1:~ troutont$ autopkg repo-list
/Users/troutont/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes (https://github.com/autopkg/recipes)
/Users/troutont/Library/AutoPkg/RecipeRepos/com.github.rtrouton.AutoPkg (https://github.com/rtrouton/AutoPkg)

troutont-wm1:~ troutont$ autopkg repo-delete /Users/troutont/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes
troutont-wm1:~ troutont$ autopkg repo-delete /Users/troutont/Library/AutoPkg/RecipeRepos/com.github.rtrouton.AutoPkg

------

8. Try to add back https://github.com/rtrouton/AutoPkg and get an error.

------

troutont-wm1:~ troutont$ autopkg repo-add https://github.com/rtrouton/AutoPkg
Attempting git clone...

Updated search path:
  '.'
  '~/Library/AutoPkg/Recipes'
  '/Library/AutoPkg/Recipes'
troutont-wm1:~ troutont$ 

------


Thanks,
Rich

Timothy Sutton

unread,
Dec 31, 2013, 1:22:56 PM12/31/13
to autopkg...@googlegroups.com
I recently added some new repo URL shorthand support:

d4dd1866d845d3b104f3a260429adc6b19f26f21

..and must have been sloppy on the regex. Thanks for catching this, will try to fix this soon.


-Tim

Timothy Sutton

unread,
Jan 1, 2014, 9:44:47 AM1/1/14
to autopkg...@googlegroups.com
This should now be fixed:

https://github.com/autopkg/autopkg/commit/96aaeb7


-Tim

On 2013-12-31, at 12:55 PM, Trouton, Rich R wrote:

Trouton, Rich R

unread,
Jan 1, 2014, 2:21:23 PM1/1/14
to <autopkg-discuss@googlegroups.com>
Thanks, Tim. I just uninstalled and reinstalled AutoPkg 0.2.4, then updated to 0.2.5 using the process I had previously outlined. This time, there were no errors when I used 0.2.5 to delete and re-add repos.

Rich

Tim Sutton

unread,
Jan 1, 2014, 2:29:32 PM1/1/14
to autopkg...@googlegroups.com
Thanks for confirming. The logic now is to bypass any fancy
URL-assembling in case Python's urlparse module detects a protocol
scheme given at the beginning of the URL.

This way alternate schemes like ssh (for private recipe repos using
key-based access, for example) should continue to also be possible (he
says, without having ever tested...).


Tim
Reply all
Reply to author
Forward
0 new messages