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

apm publish fails to publish new package from !master branch with error: That repo does not exist, isn't an atom package, or you do not have access #933

Open
1 task done
ryanblock opened this issue Sep 11, 2021 · 1 comment

Comments

@ryanblock
Copy link

ryanblock commented Sep 11, 2021

Prerequisites

Description

Publishing a new package with apm fails with the following error if it is published from a branch that is not named master: That repo does not exist, isn't an atom package, or you do not have access

It may be a factor in this bug that the package was scoped to a GitHub organization (in this case @architect). I did not attempt to publish junk packages to isolate that particular factor.

Steps to Reproduce

  1. Authored repo, tested everything locally, followed the publishing guide, repo is in main branch (note the branch is in green)

  2. Run apm publish patch (in a logged out state)

  3. Authorized Atom to my GH account

  4. Operation fails (see error below); tried again, same result

Screen Shot 2021-09-11 at 2 10 22 PM

  1. Confirmed in GitHub my account is properly authorized (it is)

Screen Shot 2021-09-11 at 2 08 58 PM

  1. Create a master branch from main

  2. Run apm publish patch again from master, this time it works (again, note the branch is in green):

  1. Merged master branch back into main

  2. Run apm publish patch again, now from main, it works:

Expected behavior:

New publishes can be published from any branch, not just master. Given the fact that the default branch in GitHub is no longer master, but is instead main, and folks are rightfully encouraged to use main and not master, this seems like a reasonable expectation.

Actual behavior:

See above.

Reproduces how often:

Every time.

Versions

MacOS Big Sur 11.5.2

apm --version
apm  2.6.2
npm  6.14.13
node 12.14.1 x64
atom 1.58.0
python 2.7.16
git 2.21.1

Additional Information

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
@ryanblock and others