Skip to content

alternate url (via CYPRESS_BINARY_VERSION) doesn't work with http links (only https) #1001

@BasieP

Description

@BasieP
  • Operating System: all
  • Cypress Version: all
  • Browser Version: all

Is this a Feature or Bug?

Bug

Current behavior:

The download only works on https due to the regex check in 'cli/lib/tasks/download.js'
const isUrl = (s) =>
isString(s) && /^https:/.test(s)

Desired behavior:

should work with all links (http, https, or better, no check at all. cause it's a manual override)

How to reproduce:

set the CYPRESS_BINARY_VERSION variable to: 'http://somesite.internal/bla.zip'
do the 'npm i cypress' command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions