JanDeDobbeleer / oh-my-posh

The most customisable and low-latency cross platform/shell prompt renderer
https://ohmyposh.dev
MIT License
17.01k stars 2.37k forks source link

Can't download v21.12.1 for linux amd64 #5108

Closed ethanherbertson closed 3 months ago

ethanherbertson commented 3 months ago

Code of Conduct

What happened?

Ran the install.sh, expecting to update my WSL install of oh-my-posh. (Currently on v19.8.0.)

Got the following error message:

Unable to download executable at https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64 Please validate your curl, connection and/or proxy settings

I also went to the releases page in my browser and verified that https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v21.12.1/posh-linux-amd64 leads to a missing blob response:

<Error>
<Code>BlobNotFound</Code>
<Message>
The specified blob does not exist. RequestId:f3f5bfec-c01e-0025-46df-c04829000000 Time:2024-06-17T17:52:11.6117378Z
</Message>
</Error>

Theme

A custom one:

{
  "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
  "version": 2,
  "final_space": true,
  "blocks": [
    {
      "type": "prompt",
      "alignment": "left",
      "segments": [
        {
          "type": "session",
          "style": "plain",
          "foreground": "#757575",
          "template": "\u250c {{ if .SSHSession }}\uf817 {{ end }}{{ .UserName }}@{{ .HostName }} ",
          "properties": {
            "display_host": true
          }
        },
        {
          "type": "root",
          "style": "plain",
          "foreground": "#ff8080",
          "template": " <#757575,>as</> \uf0e7",
          "properties": {
            "root_icon": "root"
          }
        },
        {
          "type": "time",
          "style": "plain",
          "foreground": "#689f38",
          "template": "<#757575,>|</> {{ .CurrentDate | date .Format }} ",
          "properties": {
            "time_format": "15:04:05"
          }
        },
        {
          "type": "executiontime",
          "style": "plain",
          "foreground": "#ffffff",
          "template": "\ufa1a {{ .FormattedMs }} ",
          "properties": {
            "style": "austin",
            "threshold": 500
          }
        },
        {
          "type": "command",
          "style": "powerline",
          "powerline_symbol": "\ue0b0",
          "foreground": "#ffffff",
          "background": "#1166cc",
          "template": " {{ .Output }} ",
          "properties": {
            "command": "let \"i = $SHLVL - 1\" ; if [ \"$i\" -gt 0 ] ; then echo +$i ; fi ",
            "shell": "bash"
          }
        },
        {
          "type": "path",
          "style": "powerline",
          "powerline_symbol": "\ue0b0",
          "foreground": "#100e23",
          "background": "#91ddff",
          "template": " {{ .Path }} ",
          "properties": {
            "style": "full"
          }
        },
        {
          "type": "git",
          "style": "powerline",
          "foreground": "#100e23",
          "foreground_templates":
            ["{{ if and (gt .Ahead 0) (gt .Behind 0) }}#e0def4{{ end }}"],
          "background": "#95ffa4",
          "background_templates":
            [
              "{{ if or (.Working.Changed) (.Staging.Changed) }}#ff9248{{ end }}",
              "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#f26d50{{ end }}",
              "{{ if gt .Ahead 0 }}#f17c37{{ end }}",
              "{{ if gt .Behind 0 }}#89d1dc{{ end }}"
            ],
          "powerline_symbol": "\ue0b0",
          "properties":
            {
              "fetch_stash_count": true,
              "fetch_status": true,
              "fetch_upstream_icon": true,
              "branch_max_length": 25,
              "template": " {{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }}{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }} "
            }
        },
        {
          "type": "exit",
          "style": "powerline",
          "powerline_symbol": "\ue0b0",
          "foreground": "#100e23",
          "background": "#ff8080",
          "template": " {{ if gt .Code 0 }}error{{ else }}\uf42e{{ end }} "
        }
      ],
      "newline": true
    },
    {
      "type": "prompt",
      "alignment": "left",
      "segments": [
        {
          "type": "text",
          "style": "plain",
          "foreground": "#757575",
          "template": "\u2514"
        },
        {
          "type": "text",
          "style": "plain",
          "foreground": "#ffffff",
          "template": "$"
        }
      ],
      "newline": true
    }
  ],
  "osc99": true
}

What OS are you seeing the problem on?

Linux

Which shell are you using?

bash

Log output

N/A. Output from install.sh, instead:

Oh My Posh is already installed, updating existing installation in:
  /usr/local/bin

ℹ️  Installing oh-my-posh for linux-amd64 in /usr/local/bin
⬇️  Downloading oh-my-posh from https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64
Unable to download executable at https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64
Please validate your curl, connection and/or proxy settings
JanDeDobbeleer commented 3 months ago

@ethanherbertson escalated to GitHub, it was successfully uploaded yet not to be found on GitHub's storage. I also don't have the time to re-upload manually.

CJCombrink commented 3 months ago

It appears to be working now

ethanherbertson commented 3 months ago

Can confirm, now working for me too

github-actions[bot] commented 3 weeks ago

This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.