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

Refactor: Fetch plugin from Registry & Allowing the switching of registry addresses. #151

Merged
merged 5 commits into from
Mar 28, 2024

Conversation

aooohan
Copy link
Member

@aooohan aooohan commented Mar 26, 2024

fix #125
fix #119

  1. Only support .lua or .zip file type plugin.
  2. Compatible with old plugin update way, which means old plug-ins can still be upgraded smoothly.

# 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
@aooohan aooohan requested a review from bytemain March 26, 2024 09:00
@aooohan
Copy link
Member Author

aooohan commented Mar 26, 2024

You can use vfox add nodejs and vfox udpate nodejs to try it now.

Copy link

codecov bot commented Mar 26, 2024

Codecov Report

Attention: Patch coverage is 1.84332% with 213 lines in your changes are missing coverage. Please review.

Project coverage is 35.31%. Comparing base (9a4e77e) to head (dcbbd9c).
Report is 2 commits behind head on main.

❗ Current head dcbbd9c differs from pull request most recent head c359103. Consider uploading reports for the commit c359103 to get more accurate results

Files Patch % Lines
internal/manager.go 0.00% 212 Missing ⚠️
internal/plugin.go 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #151      +/-   ##
==========================================
- Coverage   36.02%   35.31%   -0.72%     
==========================================
  Files          25       25              
  Lines        2451     2509      +58     
==========================================
+ Hits          883      886       +3     
- Misses       1480     1535      +55     
  Partials       88       88              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@aooohan aooohan merged commit 654aa18 into main Mar 28, 2024
5 of 7 checks passed
@aooohan aooohan deleted the refactor/registry1 branch March 28, 2024 01:52
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.

[Feature]: Add registry mechanism, like NPM registry [Feature]: Support for switching registry address
1 participant