Skip to content

Commit 8bbb475

Browse files
Bug fixes in build-marketplace (#887) (#889)
* fix relative path bug * fix overriding source.yaml instead of generating function.yaml * remove prints * trigger test-all workflow * fix attempt to the stuck test * log stuff * change stderr * test invalid Co-authored-by: Daniel Perez <100069700+danielperezz@users.noreply.github.com>
1 parent bf51bb9 commit 8bbb475

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

cli/marketplace/build.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ def update_or_create_item(
362362
# Copy source directories to target directories, if target already has the directory, archive previous version
363363
item_yaml = yaml.full_load(open(item_dir / "item.yaml", "r"))
364364
source_version = item_yaml["version"]
365-
relative_path = "../../"
365+
relative_path = "../../../"
366366

367367
marketplace_item = marketplace_dir / item_dir.stem
368368
target_latest = marketplace_item / "latest"
@@ -469,13 +469,13 @@ def update_or_create_item(
469469
with open(asset_yaml_path, "r") as f:
470470
source_code = f.read()
471471
render_jinja(
472-
templates / "python.html",
473-
latest_static / "source.html",
472+
templates / "yaml.html",
473+
latest_static / f"{asset_name}.html",
474474
{"source_code": source_code},
475475
)
476476
render_jinja(
477-
templates / "python.html",
478-
version_static / "source.html",
477+
templates / "yaml.html",
478+
version_static / f"{asset_name}.html",
479479
{"source_code": source_code},
480480
)
481481
ASSETS[asset_name] = f"src/{asset_name}.yaml"

functions/src/text_to_audio_generator/item.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ spec:
2525
- pydub
2626
url: ''
2727
version: 1.3.0
28-
test_valid: True
28+
test_valid: False

0 commit comments

Comments
 (0)