Skip to content

build script does not follow redirect #151

@silverfisk

Description

@silverfisk

This link fetch a url, but does not follow the redirect:

curl -s https://api.github.com/repos/comfyanonymous/ComfyUI/tags
{
  "message": "Moved Permanently",
  "url": "https://api.github.com/repositories/589831718/tags",
  "documentation_url": "https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api#follow-redirects"
}

export COMFYUI_BUILD_REF="$(curl -s https://api.github.com/repos/comfyanonymous/ComfyUI/tags | \

suggested fix: add -L to curl, to allow it to follow redirect

curl -L -s https://api.github.com/repos/comfyanonymous/ComfyUI/tags | jq -r '.[0].name'
v0.9.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions