enonic / cli-enonic

GNU General Public License v3.0
41 stars 2 forks source link

Access denied to 'https://github.com/enonic/starter-myfirstwebapp.git' #266

Closed thrdcircle closed 3 years ago

thrdcircle commented 3 years ago
PS C:\WINDOWS\system32> enonic project create -r starter-myfirstwebapp

? Project name com.example.myproject
? Destination folder myproject
? Project version 1.0.0-SNAPSHOT

Initializing project...
Could not connect to a remote repository 'https://github.com/enonic/starter-myfirstwebapp.git': mkdir myproject: Access is denied.
PS C:\WINDOWS\system32>

I'm following the instructions https://github.com/enonic/cli-enonic

I have XP CLI

Where do I place the github token? I'm not understanding the language "put it in ~/.config/goreleaser/github_token" I don't see that path. Yes I have goreleaser and dep.

Thanks

pmi commented 3 years ago

@thrdcircle, The error you provided indicates that you do not have access rights to create myproject folder inside C:\WINDOWS\system32. To fix that try executing same command from C:\Users\<username> folder for instance.

Publishing is done by us for releasing new versions of enonic CLI to our scoop, brew and snapcraft repositories. So you generally don't need that part, unless you want to set up your own repositories. In that case you will need to adjust goreleaser.yml file to your needs first.

Instead of building yourself, you can also get newest version of enonic CLI for you OS as described here https://developer.enonic.com/docs/enonic-cli/master/install

thrdcircle commented 3 years ago

Thanks, that was my oversight.