Skip to content

fix: Fixed escaping in generated configuration files - #817

Open
hackty wants to merge 1 commit into
langgenius:mainfrom
hackty:main
Open

hackty wants to merge 1 commit into
langgenius:mainfrom
hackty:main

Conversation

@hackty

@hackty hackty commented Sep 17, 2026

Copy link
Copy Markdown

Description

cause: The renderTemplate function in python.go uses html/template, which HTML-escapes < characters — turning <0.10.0 into <0.10.0 in the generated pyproject.toml.

fix: Fixed escaping in generated configuration files by switching from html/template to text/template

before

[project]
name = "xx-tool-dify-plugin"
version = "0.0.1"
requires-python = ">=3.11"
dependencies = [
    "dify-plugin>=0.9.0,&lt;0.10.0",
]

and after

[project]
name = "xx-tool-dify-plugin"
version = "0.0.1"
requires-python = ">=3.11"
dependencies = [
    "dify-plugin>=0.9.0,<0.10.0",
]

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Performance improvement
  • Other

Essential Checklist

Testing

  • I have tested the changes locally and confirmed they work as expected
  • I have added unit tests where necessary and they pass successfully

Bug Fix (if applicable)

  • I have used GitHub syntax to close the related issue (e.g., Fixes #123 or Closes #123)

Additional Information

Please provide any additional context that would help reviewers understand the changes.

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.

1 participant