Repository navigation
Refactor: Load new template plugins and be compatible with old formats - #136
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #136 +/- ##
==========================================
- Coverage 36.10% 36.02% -0.08%
==========================================
Files 25 25
Lines 2382 2451 +69
==========================================
+ Hits 860 883 +23
- Misses 1436 1480 +44
- Partials 86 88 +2 ☔ View full report in Codecov by Sentry. |
|
so in the new plugin system, is |
|
golang didn't provide a handy assert library, we can use https://pkg.go.dev/github.com/stretchr/testify to simplify the unittest in future |
Yes.
No. It will still be one. This is just a part of the new plugin system. After finishing this refactor, we will only maintain one plugin
Steps for commands after refactoring: vfox add nodejs # fetch from https://github.com/version-fox/vfox-plugins
vfox swtich nodejs npmmirror # Switch to npmmirror
vfox switch nodejs default # switch to nodejs.org.
vfox swtich nodejs tinsghuamirror Feel free to expand, environment variables can also be supported, depending on what the plugin does. |
|
The test coverage dropped by 0.2 percentage points and it failed to pass. This problem can be solved by configuring a codecov.yml coverage:
status:
project:
default:
target: auto
# allow coverage to drop by this amount and still post success
threshold: 0.5%
if_ci_failed: error
patch: off # no github status notice for coverage of the PR diff.
put a |
# Conflicts: # internal/plugin.go
# This is the 1st commit message: fix: manifest url # This is the commit message #2: doc(readme): add roadmap # This is the commit message #3: doc(readme): add roadmap # This is the commit message #4: feat: support loong64 arch fix #142 # This is the commit message #5: ci: add coverage and codecov (#138) * ci: add coverage and codecov * ci: fix testcases * ci: test all cases * ci: fix testcase on ubuntu * ci: add macos and windows * ci: show err * ci: update ci * ci: fix testcase * ci: cancel previous run * ci: skip case on windows * ci: update workflow # This is the commit message #6: fetch plugin from registry # This is the commit message #7: remove author field # This is the commit message #8: Load the corresponding hook when calling # This is the commit message #9: revert # This is the commit message #10: chore: smplified code fix: unmarshal should based on type of golang (#137) * fix: unmarshal should based on type of golang * fix: encoding map[int] will cause error * chore: update comment * test: update testcase * test: update testcase * Update internal/luai/example_test.go * test: fix testcases * test: fix testcases --------- Co-authored-by: Han Li <[email protected]> mod fix: separate processing of PATH, ensuring order and de-duplication. fix #144 #74 fix: test Refactor: Load new template plugins and be compatible with old formats (#136) * Refactoring plugin loading mechanism, support for both old and new templates * fix: manifest url * remove author field * Load the corresponding hook when calling * revert * mod add plugin from registry bugfix udpate plugin from registry udpate plugin from registry bugfix
# This is the 1st commit message: fix: manifest url # This is the commit message #2: doc(readme): add roadmap # This is the commit message #3: doc(readme): add roadmap # This is the commit message #4: feat: support loong64 arch fix #142 # This is the commit message #5: ci: add coverage and codecov (#138) * ci: add coverage and codecov * ci: fix testcases * ci: test all cases * ci: fix testcase on ubuntu * ci: add macos and windows * ci: show err * ci: update ci * ci: fix testcase * ci: cancel previous run * ci: skip case on windows * ci: update workflow # This is the commit message #6: fetch plugin from registry # This is the commit message #7: remove author field # This is the commit message #8: Load the corresponding hook when calling # This is the commit message #9: revert # This is the commit message #10: chore: smplified code fix: unmarshal should based on type of golang (#137) * fix: unmarshal should based on type of golang * fix: encoding map[int] will cause error * chore: update comment * test: update testcase * test: update testcase * Update internal/luai/example_test.go * test: fix testcases * test: fix testcases --------- Co-authored-by: Han Li <[email protected]> mod fix: separate processing of PATH, ensuring order and de-duplication. fix #144 #74 fix: test Refactor: Load new template plugins and be compatible with old formats (#136) * Refactoring plugin loading mechanism, support for both old and new templates * fix: manifest url * remove author field * Load the corresponding hook when calling * revert * mod add plugin from registry bugfix udpate plugin from registry udpate plugin from registry bugfix
fix #110