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

Allow installing old versions not listed in the package info #773

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Feb 10, 2018

  1. Allow installing old versions not listed in the package info

    Fixes atom#733
    
    Rather than relying only on the JSON returned for the package, we now fall back
    to the `GET /api/packages/:package_name/versions/:version_name` endpoint if
    necessary, and use the tarball URL from there if we find one.
    
    Since I changed the code to use `version` to mean a version JSON object, I
    renamed `packageVersion` to `versionName` in a few places to be more clear. I
    also rely on `version.version` containing the version name, which required
    updating some test fixtures.
    
    This also adds tests for installing old versions in general and producing the
    expected error message if a version isn't found.
    alangpierce committed Feb 10, 2018
    Configuration menu
    Copy the full SHA
    1b3a97c View commit details
    Browse the repository at this point in the history