Skip to content
This repository was archived by the owner on Jan 17, 2024. It is now read-only.

Fix travis #8

Merged
merged 1 commit into from
Oct 10, 2019
Merged

Fix travis #8

merged 1 commit into from
Oct 10, 2019

Conversation

mit-mit
Copy link
Contributor

@mit-mit mit-mit commented Oct 10, 2019

Fix failing build: https://travis-ci.org/dart-lang/ffi

Ran dartfmt

Copy link
Contributor

@dcharkes dcharkes left a comment

Choose a reason for hiding this comment

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

lgtm

@mit-mit mit-mit requested a review from dcharkes October 10, 2019 08:56
@mit-mit mit-mit merged commit ebc021b into master Oct 10, 2019
@mit-mit mit-mit deleted the fixtravis branch October 10, 2019 08:57
@@ -55,8 +55,7 @@ class Utf8 extends Struct<Utf8> {
/// Returns a malloc-allocated pointer to the result.
static Pointer<Utf8> toUtf8(String string) {
final units = utf8.encode(string);
final Pointer<Uint8> result =
allocate<Uint8>(count: units.length + 1);
final Pointer<Uint8> result = allocate<Uint8>(count: units.length + 1);

Choose a reason for hiding this comment

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

Don't we have the dartfmt checks enabled in .travis.yaml? How could this have been committed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We do. Could this be a change in a new version of dartfmt?

Choose a reason for hiding this comment

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

I would say it's unlikely because such a change could cause massives amounts of user code to need re-formatting (the formatter should be very stable).

Are those checks correctly configured for travis? I see that other repositories configure it differently, e.g. https://github.com/dart-lang/stack_trace/blob/master/.travis.yml :

matrix:
  include:
    # Only validate formatting using the dev release
    # Formatted with 1.23.0+ which has (good) changes since 1.22.1
    - dart: dev
      dart_task: dartfmt

(I don't know how to correctly configure travis)

@mit-mit
Copy link
Contributor Author

mit-mit commented Oct 10, 2019 via email

dcharkes pushed a commit to dart-lang/native that referenced this pull request Jan 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants