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

Handle unpublishable packages missing a version #60

Merged
merged 1 commit into from
Feb 9, 2023
Merged

Conversation

kevmoo
Copy link
Member

@kevmoo kevmoo commented Feb 8, 2023

Fix string quote for missing environment var

Fix string quote for missing environment var
@kevmoo
Copy link
Member Author

kevmoo commented Feb 8, 2023

@@ -92,6 +92,15 @@ See also the docs at https://github.com/dart-lang/ecosystem/wiki/Publishing-auto

print('pubspec:');
var pubspecVersion = package.pubspec.version;
if (pubspecVersion == null) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It makes sense to handle the NPE here, but the we're also assuming that the target repo should mark that package as publish_to: none, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe? We should decide and either error w/ a good message – or warn maybe?

publish_to: none and/or no version – right?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The convention this tool is using is to reply on publish_to: none; I'd prefer to use that consistently as the 'not intended for publishing signal'.

In previous iterations of the tool I'd had an explicit opt-in signal (auto-publish: true) and used publish_to: none as a negative signal, but it ended up being more complicated than it was worth - users not exactly knowing which packages would be managed by the publishing automation.

@kevmoo kevmoo merged commit d7882b0 into main Feb 9, 2023
@kevmoo kevmoo deleted the firehose_fixes branch February 9, 2023 16:13
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

Successfully merging this pull request may close these issues.

None yet

2 participants