Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

s init 阶段,在模板中的变量多处依赖 ${default-suffix},但是生成后每个 default-suffix 的值都不同 #819

Open
neurotoxinvx opened this issue Apr 15, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@neurotoxinvx
Copy link

Describe the bug
参考下图,在 publish.yaml 中 sid 和 functionName 的默认值都由 ${default-suffix} 生成,但是生成后的 s.yaml 中显示,生成的随机数并不是同一个,

Screenshots
image

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@neurotoxinvx neurotoxinvx added the bug Something isn't working label Apr 15, 2024
@neurotoxinvx
Copy link
Author

生成结果
image

@zxypro1
Copy link
Collaborator

zxypro1 commented Apr 15, 2024

所以是希望同一次init 使用的随机数是相同的是吗

@neurotoxinvx
Copy link
Author

@zxypro1 是的

@zxypro1
Copy link
Collaborator

zxypro1 commented Apr 16, 2024

那如果需要对多个函数命名,可能会出现名字相同的情况,在cicd环境使用-y运行的时候会出问题。需要讨论一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants