dart-lang / dart-lang/pub-dev

Forbid publishing unknown SDKs

Open
#6,591 1 comment 0 reactions 0 assignees View on GitHub
Type: enhancement
Dominant language
Dart
Stars
944
Forks
184
Avg merge
1d 15h
Merged PRs (30d)
12

Description

From: https://pub.dev/packages/remote_ui/pubspec

```yaml
environment:
sdk: ">=2.12.0 <3.0.0"
flutter_sdk: ">=2.0.0 <3.0.0"
```

Let's forbid users from publishing with unknown SDKs.

I'd propose an error message along the lines:
> Package rejected: Unknown SDK 'flutter_sdk', if you are building a custom Dart SDK please reach out to have it allow listed.

Currently, allowed SDKs:
* `sdk`
* `dart` (maybe? I don't recall if the Dart SDK still allows this)
* `flutter`
* `fuchsia` (maybe?)

It's possible we should scan all packages on pub.dev to make sure we're not forgetting something.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.