Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into refactor/make-plugin-…
Browse files Browse the repository at this point in the history
…easy-to-maintain
  • Loading branch information
bytemain committed Mar 7, 2024
2 parents d76a19c + 9151cf2 commit f4b0631
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ Plugin Contributions, please go to [version-fox-plugins](https://github.com/vers

![Star History Chart](https://api.star-history.com/svg?repos=version-fox/vfox&type=Date)

## Thanks

<a href="https://hellogithub.com/repository/a32a1f2ad04a4b8aa4dd3e1b76c880b2" target="_blank"><img src="https://api.hellogithub.com/v1/widgets/recommend.svg?rid=a32a1f2ad04a4b8aa4dd3e1b76c880b2" alt="Featured|HelloGitHub" style="width: 250px; height: 54px;" width="250" height="54" /></a>

## COPYRIGHT

[Apache 2.0 license](./LICENSE) - Copyright (C) 2024 Han Li
Expand Down
5 changes: 5 additions & 0 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ $ node -v

![Star History Chart](https://api.star-history.com/svg?repos=version-fox/vfox&type=Date)

## 感谢

<a href="https://hellogithub.com/repository/a32a1f2ad04a4b8aa4dd3e1b76c880b2" target="_blank"><img src="https://api.hellogithub.com/v1/widgets/recommend.svg?rid=a32a1f2ad04a4b8aa4dd3e1b76c880b2" alt="Featured|HelloGitHub" style="width: 250px; height: 54px;" width="250" height="54" /></a>


## COPYRIGHT

[Apache 2.0 license](./LICENSE) - Copyright (C) 2024 Han Li
Expand Down
3 changes: 2 additions & 1 deletion internal/luai/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ type PostInstallHookCtx struct {
}

type EnvKeysHookCtx struct {
RuntimeVersion string `luai:"runtimeVersion"`
RuntimeVersion string `luai:"runtimeVersion"`
Main *LuaSDKInfo `luai:"main"`
// TODO Will be deprecated in future versions
Path string `luai:"path"`
SdkInfo map[string]*LuaSDKInfo `luai:"sdkInfo"`
Expand Down
1 change: 1 addition & 0 deletions internal/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ func (l *LuaPlugin) EnvKeys(sdkPackage *Package) (env.Envs, error) {
// TODO Will be deprecated in future versions
Path: mainInfo.Path,
RuntimeVersion: RuntimeVersion,
Main: NewLuaSDKInfo(mainInfo),
SdkInfo: make(map[string]*luai.LuaSDKInfo),
}

Expand Down

0 comments on commit f4b0631

Please sign in to comment.