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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Add --fetch-deps-only flag to aptos move compile #13279

Open
mkurnikov opened this issue May 14, 2024 · 0 comments
Open

[Feature Request] Add --fetch-deps-only flag to aptos move compile #13279

mkurnikov opened this issue May 14, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mkurnikov
Copy link
Contributor

馃殌 Feature Request

Motivation

Is your feature request related to a problem? Please describe.

If user changes dependencies in the Move.toml file, IDEs need to fetch and index updated source code to be able to provide the name resolution functionality.
It can run aptos move compile to do that on every change.

There are some problems with this approach:

  1. it's slow, doing unnecessary work generating the bytecode, which could be a problem if it's called often enough,
  2. it could, and probably will fail with compilation error, as user could be in the middle of typing the code. Ignoring the errors works, but creates unnecessary friction,
  3. finally, it can create side effects for the user, as one won't expect project to be compiled.

Pitch

Describe the solution you'd like

Add --fetch-deps-only flag to the aptos move compile, wrapping functionality added in move-language/move#267.
sui move build --fetch-deps-only can be used as a reference.

Describe alternatives you've considered

Are you willing to open a pull request? (See CONTRIBUTING)

Additional context

@gregnazario

@mkurnikov mkurnikov added the enhancement New feature or request label May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant