Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pub] publish --dry-run does NOT warning TODO in LICENSE while pub.dev forbids #2743

Closed
Sunbreak opened this issue Nov 11, 2020 · 1 comment

Comments

@Sunbreak
Copy link

Environment

  • pub version or flutter pub version: Pub 2.11.0-213.1.beta
  • OS version: macOS 10.15.7
  • Are you using the Chinese community mirror or a corporate firewall? No

Problem

When LICENSE file is

TODO: Add your license here.
  • flutter pub publish -n goes OK
  • flutter pub publish fails with LICENSE file "LICENSE" contains generic TODO.

pubspec.yaml

name: quick_blue_platform_interface
description: A new Flutter package project.
version: 0.1.0
homepage: https://github.com/woodemi/quick_blue
repository: https://github.com/woodemi/quick_blue/tree/master/quick_blue_platform_interface

environment:
  sdk: ">=2.7.0 <3.0.0"
  flutter: ">=1.17.0 <2.0.0"

dependencies:
  flutter:
    sdk: flutter
  plugin_platform_interface: ^1.0.1

dev_dependencies:
  flutter_test:
    sdk: flutter

Expected behavior

flutter pub publish -n warns about LICENSE file "LICENSE" contains generic TODO.

Actual behavior

flutter pub publish -n goes OK

--trace output

Could not find an option named "trace".


Run 'flutter -h' (or 'flutter <command> -h') for available flutter commands and options.
@sigurdm
Copy link
Contributor

sigurdm commented Feb 11, 2021

Closing as duplicate of #2828

@sigurdm sigurdm closed this as completed Feb 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants