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

Add missing types #1168

Merged
merged 1 commit into from
Sep 13, 2023
Merged

Add missing types #1168

merged 1 commit into from
Sep 13, 2023

Conversation

a-robinson
Copy link
Member

Although FWIW I haven't really verified that what this generates looks ok, since I haven't been able to successfully bazel build //types:types on either my linux or mac boxes (even without this change).

/*
* The randomly generated password to use when authenticating to your
* database via Hyperdrive. Like the host field, this password is only valid
* within the context of the currently running worker instance from which
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
* within the context of the currently running worker instance from which
* within the context of the currently running Worker instance from which

Copy link
Member Author

Choose a reason for hiding this comment

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

👍


/*
* A randomly generated hostname that is only valid within the context of the
* currently running worker which, when passed into `connect()` function from
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
* currently running worker which, when passed into `connect()` function from
* currently running Worker which, when passed into `connect()` function from

Copy link
Member Author

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@mrbbot mrbbot left a comment

Choose a reason for hiding this comment

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

since I haven't been able to successfully bazel build //types:types on either my linux or mac boxes (even without this change).

Would you be able to DM me the error you're seeing internally? 🙂

Comment on lines 1 to 4
// Copyright (c) 2023 Cloudflare, Inc.
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
// https://opensource.org/licenses/Apache-2.0

Copy link
Contributor

Choose a reason for hiding this comment

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

The contents of files in the defines directory are concatenated as is to the types output. This means this copyright header will be interested mid-way through the file. I'd probably remove it. 👍

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, I'll remove it. I just copied it from the other files, all but one of which have a similar header.

Copy link
Member Author

Choose a reason for hiding this comment

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

Also opened up #1176 to remove the other headers in case that's something you think we ought to do.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks!

a-robinson added a commit that referenced this pull request Sep 13, 2023
@a-robinson a-robinson merged commit 1acdc26 into main Sep 13, 2023
7 checks passed
a-robinson added a commit that referenced this pull request Sep 13, 2023
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.

3 participants