Skip to content
This repository has been archived by the owner on Jun 6, 2022. It is now read-only.

github private repositories #46

Open
gmillerd opened this issue Oct 22, 2020 · 2 comments
Open

github private repositories #46

gmillerd opened this issue Oct 22, 2020 · 2 comments

Comments

@gmillerd
Copy link

Hello, fabulous tool thanks.

Does wowa support private repositories? I am having issues getting this to work.

I am able to clone natively with 'git clone' (my .git-credentials works), I have altered wowa/source/github.js to expose that my process.env.GITHUB_TOKEN is being passed (it is).

Everything in wowa/source/github.js seems to work, its when 'done(d)' is called that master.zip isn't authorized. In ok.git:L81 the output of console.log(d) is the following

wowa install redacted/addon
⠇ redacted/addon [github] waiting...
done { name: 'addon',
  owner: 'redacted',
  author: 'redacted',
  page: 'https://github.com/redacted/addon',
  version:
   [ { name: '7667e48',
       link:
        'https://github.com/redacted/addon/archive/master.zip' } ],
  ↓ redacted/addon @7667e48 [github] HTTPError: Response code 404 (Not Found) [skipped]

Thanks!

@antiwinter
Copy link
Owner

I see one possible way is to install private github repo as an arbitrary git repo. In order to install as an arbitrary git repo, you'll need to disable the github source in code:

diff --git a/source/index.js b/source/index.js
index 78171e3..b454685 100644
--- a/source/index.js
+++ b/source/index.js
@@ -12,7 +12,7 @@ let src = {
     curse: require('./curse'),
     mmoui: require('./mmoui'),
     tukui: require('./tukui'),
-    github: require('./github'),
+    // github: require('./github'),
     git: require('./git')
   },

@antiwinter
Copy link
Owner

But the best way is to make your addon public :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants