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 default dependencies for {.NET,nodejs} #11315

Merged
merged 2 commits into from Nov 10, 2022
Merged

Conversation

iwahbe
Copy link
Member

@iwahbe iwahbe commented Nov 9, 2022

Fixes #11241
Fixes #11237

@pulumi-bot
Copy link
Contributor

pulumi-bot commented Nov 9, 2022

Changelog

[uncommitted] (2022-11-10)

Features

  • [sdkgen/{dotnet,nodejs}] Add default dependencies for generated SDKs.
    #11315

@iwahbe iwahbe force-pushed the iwahbe/default-dependencies branch from 65fefda to 4988626 Compare November 9, 2022 22:11
@iwahbe iwahbe self-assigned this Nov 9, 2022
@iwahbe iwahbe modified the milestone: 0.80 Nov 9, 2022
@iwahbe iwahbe force-pushed the iwahbe/default-dependencies branch from 4988626 to 791c3a9 Compare November 9, 2022 22:37
pkg/codegen/nodejs/gen.go Outdated Show resolved Hide resolved
pkg/codegen/nodejs/gen.go Outdated Show resolved Hide resolved
pkg/codegen/nodejs/gen.go Outdated Show resolved Hide resolved
Copy link
Member

@AaronFriel AaronFriel left a comment

Choose a reason for hiding this comment

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

Disregard my suggestion for >=14. This change for sdkgen makes sense. 👍

@iwahbe
Copy link
Member Author

iwahbe commented Nov 10, 2022

bors r+

bors bot added a commit that referenced this pull request Nov 10, 2022
11315: Add default dependencies for {.NET,nodejs} r=iwahbe a=iwahbe

Fixes #11241
Fixes #11237

Co-authored-by: Ian Wahbe <ian@wahbe.com>
@bors
Copy link
Contributor

bors bot commented Nov 10, 2022

Build failed:

@iwahbe
Copy link
Member Author

iwahbe commented Nov 10, 2022

bors retry

@bors
Copy link
Contributor

bors bot commented Nov 10, 2022

Build succeeded:

@bors bors bot merged commit e6e027e into master Nov 10, 2022
@bors bors bot deleted the iwahbe/default-dependencies branch November 10, 2022 02:33
packageReferences = map[string]string{}
}
if _, ok := packageReferences["Pulumi"]; !ok {
packageReferences["Pulumi"] = "3.*"
Copy link
Member

Choose a reason for hiding this comment

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

Is this reference accurate - is the latest code that gets generated compatible with Pulumi 3.0.0 or should this be something like [3.2.1,4)?

Copy link
Member

Choose a reason for hiding this comment

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

@iwahbe sorry I wasn't able to review before this got merged ... might require a little more investigation and a follow-up PR

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 problem. We have 3.* everywhere. Checking against our examples, we compile against 3.23.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, this is known to be wrong everywhere currently, but maintaining accurate min versions in each repo right now would be too much work. Now this is centralised, we should be bumping the min version as we add features to the SDK for use in codegen. We should do a one-off check if there have been any features added in the .Net SDK which are required for the current version of codegen.

bors bot added a commit that referenced this pull request Nov 10, 2022
11322: Set minimum .NET build version to 3.23.0 r=iwahbe a=iwahbe

Followup on #11315 (comment).

Co-authored-by: Ian Wahbe <ian@wahbe.com>
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.

Generate dotnet default dependencies Generate sensible Nodejs default dependencies
5 participants