Skip to content

Codespaces dart installation fails due to old key mechanism #666

Description

@desmonddak

Describe the bug

We see a failure in the CI for codespaces installation due to using an old dart key locally.

To Reproduce

See recent CI logs.

Expected behavior

Copilot suggests the following ~/tool/gh_codespaces/install_dart.sh which is undergoing test in our central_naming PR #652 :

#!/bin/bash
set -euo pipefail

sudo apt-get update
sudo apt-get install -y wget gpg apt-transport-https

sudo mkdir -p /usr/share/keyrings
wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub \
  | gpg --dearmor \
  | sudo tee /usr/share/keyrings/dart.gpg >/dev/null

echo "deb [signed-by=/usr/share/keyrings/dart.gpg] https://storage.googleapis.com/download.dartlang.org/linux/debian stable main" \
  | sudo tee /etc/apt/sources.list.d/dart_stable.list

sudo apt-get update
sudo apt-get install -y dart

Actual behavior

No response

Additional: Dart SDK info

No response

Additional: pubspec.yaml

Additional: Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions