Skip to content
New issue

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

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

Already on GitHub? # to your account

feat: add forc-migrate plugin #699

Merged
merged 3 commits into from
Feb 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
uses: hrishikesh-kadam/setup-lcov@v1

- name: Report code coverage
uses: zgosalvez/github-actions-report-lcov@v3
uses: zgosalvez/github-actions-report-lcov@v4
with:
coverage-files: lcov.info
minimum-coverage: 0 # for now we are not enforcing any minimum coverage.
Expand Down Expand Up @@ -267,7 +267,7 @@ jobs:
run: ./fuelup-init.sh

notify-slack-on-failure:
if: failure()
if: failure() && github.ref == 'refs/heads/master'
needs:
[
publish-codecov,
Expand Down
8 changes: 8 additions & 0 deletions components.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ executables = ["forc-deploy", "forc-run", "forc-submit"]
repository_name = "sway"
targets = ["linux_amd64", "linux_arm64", "darwin_amd64", "darwin_arm64"]

[component.forc-migrate]
name = "forc-migrate"
tarball_prefix = "forc-binaries"
is_plugin = true
executables = ["forc-migrate"]
repository_name = "sway"
targets = ["linux_amd64", "linux_arm64", "darwin_amd64", "darwin_arm64"]

[component.forc-tx]
name = "forc-tx"
tarball_prefix = "forc-binaries"
Expand Down
3 changes: 2 additions & 1 deletion docs/src/installation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ curl -fsSL https://install.fuel.network/ | sh
```
<!-- install:example:end -->

This will install `forc`, `forc-client`, `forc-fmt`, `forc-crypto`, `forc-debug`, `forc-lsp`, `forc-wallet` as well as `fuel-core` in `~/.fuelup/bin`. The script will ask for permission to add `~/.fuelup/bin` to your `PATH`.
This will install `forc`, `forc-client`, `forc-fmt`, `forc-crypto`, `forc-debug`, `forc-migrate`, `forc-lsp`, `forc-wallet` as well as `fuel-core` in `~/.fuelup/bin`. The script will ask for permission to add `~/.fuelup/bin` to your `PATH`.

Otherwise, you can also pass `--no-modify-path` so that `fuelup-init` does not modify your `PATH` and will not ask for permission to do so:

Expand All @@ -42,6 +42,7 @@ forc-fmt --version
forc-crypto --version
forc-debug --version
forc-lsp --version
forc-migrate --version
forc-run --version
forc-submit --version
```
Expand Down
7 changes: 7 additions & 0 deletions tests/show.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ fn fuelup_show_latest() -> Result<()> {
- forc-doc : 0.1.0
- forc-fmt : 0.1.0
- forc-lsp : 0.1.0
- forc-migrate : 0.1.0
- forc-tx : 0.1.0
- forc-wallet : 0.1.0
fuel-core : 0.1.0
Expand Down Expand Up @@ -85,6 +86,7 @@ fn fuelup_show_and_switch() -> Result<()> {
- forc-doc : 0.1.0
- forc-fmt : 0.1.0
- forc-lsp : 0.1.0
- forc-migrate : 0.1.0
- forc-tx : 0.1.0
- forc-wallet : 0.1.0
fuel-core : 0.1.0
Expand Down Expand Up @@ -121,6 +123,7 @@ fn fuelup_show_and_switch() -> Result<()> {
- forc-doc : 0.2.0
- forc-fmt : 0.2.0
- forc-lsp : 0.2.0
- forc-migrate : 0.2.0
- forc-tx : 0.2.0
- forc-wallet : 0.2.0
fuel-core : 0.2.0
Expand Down Expand Up @@ -163,6 +166,7 @@ fn fuelup_show_custom() -> Result<()> {
- forc-doc : not found
- forc-fmt : not found
- forc-lsp : not found
- forc-migrate : not found
- forc-tx : not found
- forc-wallet : not found
fuel-core : not found
Expand Down Expand Up @@ -203,6 +207,7 @@ fn fuelup_show_override() -> Result<()> {
- forc-doc : not found
- forc-fmt : not found
- forc-lsp : not found
- forc-migrate : not found
- forc-tx : not found
- forc-wallet : not found
fuel-core : not found
Expand Down Expand Up @@ -246,6 +251,7 @@ fn fuelup_show_latest_then_override() -> Result<()> {
- forc-doc : 0.1.0
- forc-fmt : 0.1.0
- forc-lsp : 0.1.0
- forc-migrate : 0.1.0
- forc-tx : 0.1.0
- forc-wallet : 0.1.0
fuel-core : 0.1.0
Expand Down Expand Up @@ -295,6 +301,7 @@ fn fuelup_show_latest_then_override() -> Result<()> {
- forc-doc : 0.2.0
- forc-fmt : 0.2.0
- forc-lsp : 0.2.0
- forc-migrate : 0.2.0
- forc-tx : 0.2.0
- forc-wallet : 0.2.0
fuel-core : 0.2.0
Expand Down
1 change: 1 addition & 0 deletions tests/testcfg/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ pub static ALL_BINS: &[&str] = &[
"forc-fmt",
"forc-index",
"forc-lsp",
"forc-migrate",
"forc-run",
"forc-submit",
"forc-tx",
Expand Down
Loading