Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tools/@aws-cdk/ubergen/bin/ubergen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,9 @@ async function combineRosettaFixtures(libraries: readonly LibraryReference[]) {

for (const library of libraries) {
const packageRosettaDir = path.join(library.root, 'rosetta');
const uberRosettaTargetDir = library.shortName === 'core' ? uberRosettaDir : path.join(uberRosettaDir, library.shortName.replace(/-/g, '_'));
if (await fs.pathExists(packageRosettaDir)) {
await fs.copy(packageRosettaDir, uberRosettaDir, {
await fs.copy(packageRosettaDir, uberRosettaTargetDir, {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we probably need to make an exception for the core submodule, which gets moved to the ROOT of the monopackage, not placed in a submodule.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Now the fixtures show up in the rosetta directory and the number of outstanding failures went from 1973 to 1722. Also validated that stack.AddTransform compiles along with a few other examples from the core module.

overwrite: true,
recursive: true,
});
Expand Down