Skip to content

Conversation

@msyyc
Copy link
Member

@msyyc msyyc commented Dec 9, 2025

For python, inconsistency between emitter-output-dir and namespace will cause unexpected error (e.g. here) so we need add a new rule for python.

@github-actions
Copy link

github-actions bot commented Dec 9, 2025

Next Steps to Merge

Next steps that must be taken to merge this PR:
  • ❌ The required check named Protected Files has failed. Refer to the check in the PR's 'Checks' tab for details on how to fix it and consult the aka.ms/ci-fix guide


Comment generated by summarize-checks workflow run.

@msyyc msyyc marked this pull request as ready for review December 10, 2025 02:21
}
}

export class TspConfigPythonNamespaceMatchesEmitterOutputDirSubRule extends TspconfigSubRuleBase {
Copy link
Member

@MaryGao MaryGao Dec 10, 2025

Choose a reason for hiding this comment

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

Is this rule to validate the namespace is matching with last segment of emitter-output-dir?

return { success: true };
}

private resolveLastPathSegment(
Copy link
Member

@MaryGao MaryGao Dec 10, 2025

Choose a reason for hiding this comment

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

@skywing918 Can we share a helper to get the last segment of emitter-output-dir?

I think we need to share this logic and also in that logic to fix our existing bug:#38964.

Copy link
Member

@MaryGao MaryGao left a comment

Choose a reason for hiding this comment

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

As offline discussed, @skywing918 pls have a pr to prepare the helper first so that in this pr we could leverage the same helper and no need to duplicate it.

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