Skip to content

Conversation

@gmackall
Copy link
Member

@gmackall gmackall commented Feb 26, 2024

Creates a ktlint cipd package, for use in flutter/flutter#143478.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read the Flutter Style Guide recently, and have followed its advice.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@gmackall gmackall marked this pull request as ready for review February 27, 2024 18:46
@gmackall
Copy link
Member Author

Hey @godofredoc , follow up to internal discussion (took me longer to get to this than expected). Does this look roughly correct? Does it matter where the file goes after it is downloaded by build.sh? I saw other scripts making a build directory, but couldn't tell how they were pushing the output of the build to cipd

@keyonghan
Copy link
Contributor

Hey @godofredoc , follow up to internal discussion (took me longer to get to this than expected). Does this look roughly correct? Does it matter where the file goes after it is downloaded by build.sh? I saw other scripts making a build directory, but couldn't tell how they were pushing the output of the build to cipd

The upload happens in recipes (via a bot) to upload the build to cipd. #3529 to update the doc.

cipd_packages/device_doctor/** @yusuf-goog
cipd_packages/doxygen/** @gspencergoog
cipd_packages/ruby/** @godofredoc
cipd_packages/ktlint/** @gmackall
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: order alphabetically.

- cipd_packages/ruby/**
- .ci.yaml

- name: Linux ktlint
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you need one for other platforms?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, I only plan to use this for one of the linux checks

auto-submit bot pushed a commit that referenced this pull request Feb 29, 2024
Copy link
Member Author

Choose a reason for hiding this comment

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

Unrelated to the rest of this PR, but I noticed that this file wasn't displaying properly on github because it didn't have an .md extension, so I changed it.

@gmackall gmackall requested a review from keyonghan February 29, 2024 21:07
Copy link
Contributor

@keyonghan keyonghan left a comment

Choose a reason for hiding this comment

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

LGTM

@gmackall gmackall added the autosubmit Merge PR when tree becomes green via auto submit App. label Feb 29, 2024
@auto-submit auto-submit bot merged commit e553f67 into flutter:main Feb 29, 2024
@gmackall gmackall mentioned this pull request Mar 4, 2024
8 tasks
auto-submit bot pushed a commit that referenced this pull request Mar 4, 2024
In #3522 I landed a `build.sh` which uses `curl` with the output
```
 -o $DIR/../build/ktlint/
```
I didn't know `-o` is intended to target the output file, not directory (both the file and the directory in this case are named ktlint). Hence the warning:
```
Warning: Failed to create the file 
Warning: /b/s/w/ir/x/w/cocoon/cipd_packages/ktlint/tools/../build/ktlint: Is a 
Warning: directory
```

Changes to `-o $DIR/../build/ktlint/ktlint`
sealesj pushed a commit to sealesj/cocoon that referenced this pull request Mar 7, 2024
In flutter#3522 I landed a `build.sh` which uses `curl` with the output
```
 -o $DIR/../build/ktlint/
```
I didn't know `-o` is intended to target the output file, not directory (both the file and the directory in this case are named ktlint). Hence the warning:
```
Warning: Failed to create the file 
Warning: /b/s/w/ir/x/w/cocoon/cipd_packages/ktlint/tools/../build/ktlint: Is a 
Warning: directory
```

Changes to `-o $DIR/../build/ktlint/ktlint`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants