Skip to content

Conversation

dcharkes
Copy link
Collaborator

Closes: #2702

Copy link

Package publishing

Package Version Status Publish tag (post-merge)
package:code_assets 0.19.8 already published at pub.dev
package:data_assets 0.19.3 already published at pub.dev
package:ffi 2.1.5-wip WIP (no publish necessary)
package:hooks 0.20.4 ready to publish hooks-v0.20.4
package:hooks_runner 0.23.1 already published at pub.dev
package:native_toolchain_c 0.17.2 already published at pub.dev
package:swift2objc 0.1.0 already published at pub.dev
package:swiftgen 0.1.1 already published at pub.dev

Documentation at https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.

Copy link

PR Health

Breaking changes ✔️
Package Change Current Version New Version Needed Version Looking good?
hooks None 0.20.3 0.20.4 0.20.3 ✔️

This check can be disabled by tagging the PR with skip-breaking-check.

Changelog Entry ✔️
Package Changed Files

Changes to files need to be accounted for in their respective changelogs.

This check can be disabled by tagging the PR with skip-changelog-check.

API leaks ✔️

The following packages contain symbols visible in the public API, but not exported by the library. Export these symbols or remove them from your publicly visible API.

Package Leaked API symbol Leaking sources

This check can be disabled by tagging the PR with skip-leaking-check.

License Headers ✔️
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
Files
no missing headers

All source files should start with a license header.

Unrelated files missing license headers
Files
pkgs/objective_c/lib/src/ns_input_stream.dart

This check can be disabled by tagging the PR with skip-license-check.

@coveralls
Copy link

coveralls commented Oct 14, 2025

Coverage Status

coverage: 71.853%. first build
when pulling 186dd75 on hooks-debugging
into f3d890c on main.

Copy link
Contributor

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

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

LGTM!

/// Again, make sure to replace `your_package_name`, and `some_hash` with the
/// actual paths from your project. After setting this up, you can run the
/// "Debug Link Hook" configuration from the "Run and Debug" view in VS Code.
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: drop this blank line?

///
/// * `input.json`: The configuration and data passed into your link hook.
/// * `output.json`: The JSON data that your link hook produced.
/// * `stdout.txt`: Any standard output from your script.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/// * `stdout.txt`: Any standard output from your script.
/// * `stdout.txt`: Any standard output from your link hook.

Let's stay with one terminology?

/// Again, make sure to replace `your_package_name`, and `some_hash` with the
/// actual paths from your project. After setting this up, you can run the
/// "Debug Build Hook" configuration from the "Run and Debug" view in VS Code.
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: drop blank line?

Comment on lines 92 to 93
/// specific
/// to your hook's execution. The path is of the form
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: strange line breaking?

///
/// * `input.json`: The configuration and data passed into your build hook.
/// * `output.json`: The JSON data that your build hook produced.
/// * `stdout.txt`: Any standard output from your script.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/// * `stdout.txt`: Any standard output from your script.
/// * `stdout.txt`: Any standard output from your build hook.

Let's stay with one terminology?

build configuration.
* `output.json`: This file stores the JSON data that your build hook *produced*
as its result.
* `stdout.txt`: Captures any standard output from your script. This is where
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* `stdout.txt`: Captures any standard output from your script. This is where
* `stdout.txt`: Captures any standard output from your build hook. This is where

Let's stay with one terminology?

@@ -0,0 +1,86 @@
# Debugging Dart Build Hooks
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: technically, all that's said in here also applies to link hooks. Should we note that somewhere? Or is the omission on purpose because link hooks aren't launched yet? Even then, a short note that this also applies in the same way to the experimental link hooks may be useful.

@auto-submit auto-submit bot merged commit d11195c into main Oct 15, 2025
28 checks passed
@auto-submit auto-submit bot deleted the hooks-debugging branch October 15, 2025 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[hooks] Document how to run the debugger

4 participants