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

Chocolatey deploy fix #56

Merged
merged 16 commits into from
Oct 28, 2020
Merged

Chocolatey deploy fix #56

merged 16 commits into from
Oct 28, 2020

Conversation

leoafarias
Copy link
Contributor

closes #49

@jathak jathak requested a review from nex3 September 30, 2020 21:50
Copy link
Collaborator

@nex3 nex3 left a comment

Choose a reason for hiding this comment

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

Thanks for diving into this! It'll be exciting to have this back up and running.

@@ -227,6 +227,7 @@ Future<void> _build() async {
writeString("build/chocolatey/$_chocolateyName.nuspec", _nuspec.toString());
Directory("build/chocolatey/tools").createSync();
writeString("build/chocolatey/tools/LICENSE", await license);
writeString("build/chocolatey/tools/VERIFICATION", '');
Copy link
Collaborator

Choose a reason for hiding this comment

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

What does this file do? Is it a problem that it's empty?

@leoafarias
Copy link
Contributor Author

@nex3 Great question. When you deploy a package to Chocolatey, they run a validation script about some things that could be missing. One of them is this verification file, here is the error that shows up without it.

https://github.com/chocolatey/package-validator/wiki/VerificationFileMissing

You can use this to do checksum, but it is optional.

TLDR; It's optional to have checksum verification, but the validator does ask for this file.

@leoafarias
Copy link
Contributor Author

@nex3 I believe this needs to be made as a parameter similar to the nuspec file later. I can try to take a look at this at a later time. But I believe you still need a VERIFICATION file even if it's empty.

@nex3
Copy link
Collaborator

nex3 commented Oct 5, 2020

Looking at that link, it seems like this is intended to be a human-readable file that describes how binary files were generated. In our case, the only "binary" is the zip file containing the package's source code. I wonder if it would be easier to just include the source files directly, since the .nupkg is already a zip file, and avoid needing a VERIFICATION file at all.

@leoafarias
Copy link
Contributor Author

If we able to avoid I think it would be great. Makes things a bit cleaner.

@leoafarias
Copy link
Contributor Author

@nex3 Please let me know if you want me to try to take a look at your suggestion. Wasn't sure what the next steps are.

@nex3
Copy link
Collaborator

nex3 commented Oct 13, 2020

Oh I'm sorry, I should have been more clear. Could you modify the code to copy in each source file directly to the Chocolatey package rather than creating a zip file containing all of them?

@nex3
Copy link
Collaborator

nex3 commented Oct 15, 2020

It looks like the tests are failing...

@leoafarias
Copy link
Contributor Author

leoafarias commented Oct 15, 2020

@nex3 This is weird. For me it seems that master is also not passing the tests.

This PR #59 shows that it did not pass CI for me. Could this have something to do with it?

@nex3
Copy link
Collaborator

nex3 commented Oct 15, 2020

master seems to be passing on Travis.

This PR #59 shows that it did not pass CI for me. Could this have something to do with it?

I'm not sure why it's not showing up on GitHub, but its build did succeed.

@leoafarias
Copy link
Contributor Author

hmm ok will dig deeper

@leoafarias leoafarias changed the title Chocolatey deploy fix WIP: Chocolatey deploy fix Oct 16, 2020
@leoafarias leoafarias changed the title WIP: Chocolatey deploy fix Chocolatey deploy fix Oct 16, 2020
@leoafarias
Copy link
Contributor Author

Good news. Silly mistake. Will review the Chocolatey submission process to make sure we are good to go.

However tests still fail on my local windows machine, but it happens on master also, so will check it out later and open another PR if anything.

@leoafarias leoafarias changed the title Chocolatey deploy fix WIP: Chocolatey deploy fix Oct 16, 2020
@leoafarias leoafarias changed the title WIP: Chocolatey deploy fix Chocolatey deploy fix Oct 18, 2020
@leoafarias
Copy link
Contributor Author

All validations passed on Chocolatey

@nex3 nex3 merged commit b5dc8b4 into google:master Oct 28, 2020
nex3 added a commit to sass/dart-sass that referenced this pull request Oct 28, 2020
This reverts commit 01ed720. Now that
google/dart_cli_pkg#56 has landed, Chocolatey deployment should work
again.
nex3 added a commit to sass/dart-sass that referenced this pull request Oct 28, 2020
This reverts commit 01ed720. Now that
google/dart_cli_pkg#56 has landed, Chocolatey deployment should work
again.
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.

Fix Chocolatey deploy
2 participants