Laravel Spark - unable to connect to repo

So, I recently made two big changes ... transferred my code from bitbucket to github and installed the pipeline on heroku with a new middleware application (now the original application).

I got a new github token and put it in the auth.json file, as was done with the previous bitbucket repository (this is a private repo). However, when I click on the hero to create the code with the composer, I cannot connect to the laravel spark relaxer.

Error:

Installing laravel/spark (v3.0.5): Downloading (failed) Failed to download laravel/spark from dist: The "https://api.github.com/repos/laravel/spark/zipball/512af184c15d793c33328ff03313553ea6feacba" file could not be downloaded (HTTP/1.1 404 Not Found) Now trying to download from source Installing laravel/spark (v3.0.5): Cloning 512af184c1 [RuntimeException] Failed to execute git clone --no-checkout 'https://***:***@github.com/laravel/spark.git' '/tmp/build_9916d292e7eb72e0fbe34f47e3d9854c/vendor/laravel/spark' && cd '/tmp/build_9916d292e7eb72e0fbe34f47e3d9854c/vendor/laravel/spark' && git remote add composer 'https://***:***@github.com/laravel/spark.git' && git fetch composer remote: Repository not found. fatal: repository 'https://***:***@github.com/laravel/spark.git/' not found 

What I tried ...

Install github api token on heroku with

 heroku config:set GITHUB_API_TOKEN=<token> 

Setting the github composer marker

 composer config -g github-oauth.github.com <token> 

I am connected to the Laravel Spark refit on github, and when I run the composer on my local machine, I am not offered a spark shortcut. For every other dependency that I execute, I can change auth.json, and it is not, so I do not think that this is a problem with the lack of access to my github.

Does anyone know how Laravel - Spark checks to provide access and how we can check where we are wrong? There should be a checklist of things to look at if access is denied.

Any help is appreciated. Stuck for almost a week. I really need some way to figure out how to connect to the Spark repo.

(Edit) Spark - composer satis repo. I cannot find any information on how to suggest this type of repo to tell me why I cannot clone it or how best to communicate with it.

(Edit 2) Also tried to reconfigure git to make sure it has the correct token. This should be overwritten by files, but I tried anyway.

 git config github.accesstoken <token> 

The answer of the software providers is to use an alternative method and place the code under my control of the source so that the composer does not try to download it. I do not want to do this for a number of reasons. Again, I need a way to clone a satis repo in a composer.

Edit 3: I also tried navigating the repo url and trying to access one of the versions. This displays the same error as when directly accessing the URL in the error (this is the same URL).

 { "message": "Not Found", "documentation_url": "https://developer.github.com/v3/repos/contents/#get-archive-link" } 

This seems to confirm the belief that this is not a composer problem, but something related to setting up github or sparking.

Edit 4: It occurred to me that my problems started after upgrading to V6, and I was denied access to the spark repo containing versions 1-5, and version 6 is separate. I upgraded my spark to 6 and got access to this repo. Then I tried to load the code base in a hero who had version 6, but she was denied access to the repo.

I also tried ...

 heroku config:set github_oauth=<token> 

Edit 5: I noticed that the exit from clicking on the hero included the phrase

 NOTICE: Using $COMPOSER_GITHUB_OAUTH_TOKEN for GitHub OAuth. 

In response, I found an article claiming that the oauth token should be installed in the configuration part of composer.json as ...

 "config": { "github-oauth": { "github.com": "<token>" } } 

I tried, but it did not work

+5
source share
1 answer

So it turned out that there were a few questions. The last was that for some reason I had to remove my personal api token used to access github and create a new one with full privileges for everything. After it was configured, I gained access and was able to reduce privileges only for repo.

+1
source

Source: https://habr.com/ru/post/1276012/


All Articles