Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion eng/automation/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def main():
tsp_config = args["tsp_config"]

succeeded, require_sdk_integration, sdk_folder, service, module = generate_typespec_project(
tsp_project=tsp_config, sdk_root=sdk_root, remove_before_regen=True, group_id=GROUP_ID
tsp_project=tsp_config, sdk_root=sdk_root, remove_before_regen=True, group_id=GROUP_ID, **args
)

stable_version, current_version = set_or_increase_version(sdk_root, GROUP_ID, module, **args)
Expand Down
6 changes: 6 additions & 0 deletions eng/automation/generate_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from utils import update_root_pom
from utils import update_version
from utils import is_windows
from utils import set_or_increase_version

os.chdir(pwd)

Expand Down Expand Up @@ -333,6 +334,8 @@ def generate_typespec_project(
repo_url: str = "",
remove_before_regen: bool = False,
group_id: str = None,
version: str = None,
**kwargs,
):

if not tsp_project:
Expand Down Expand Up @@ -411,6 +414,9 @@ def generate_typespec_project(
# clear existing generated source code, and regenerate
drop_changes(sdk_root)
remove_generated_source_code(sdk_folder, f"{group_id}.{service}")
_, current_version = set_or_increase_version(sdk_root, group_id, module, version=version)
tsp_cmd.append("--emitter-options")
tsp_cmd.append(f'package-version={current_version}')
# regenerate
check_call(tsp_cmd, sdk_root)
succeeded = True
Expand Down
Loading