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

Bug: 在控制台重载配置后,插值失效 #1328

Open
XxLittleCxX opened this issue Jan 11, 2024 · 1 comment
Open

Bug: 在控制台重载配置后,插值失效 #1328

XxLittleCxX opened this issue Jan 11, 2024 · 1 comment
Labels
bug BUG

Comments

@XxLittleCxX
Copy link
Member

Describe the bug

如题

Steps to reproduce

// index.ts
export interface Config {
  test: string
}

export const Config: Schema<Config> = Schema.object({
  test: Schema.string()
})

export function apply(ctx: Context, config: Config) {
  ctx.logger('test').info('%o', config)
}

yml 配置:test: '${{ env.NODE_ENV === ''production'' ? ''foo'' : ''bar''}}'

点击一下控制台重载,
cddeacbbfb011a3b52b5706abb9e68da

Expected behavior

值正常

Screenshots

No response

Versions

  • Koishi version: 4.16.4

Additional context

No response

@shigma
Copy link
Member

shigma commented Jan 18, 2024

这个问题暂时不好修,可能等到 4.18 重构完成后再处理。

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

Successfully merging a pull request may close this issue.

2 participants