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

Preserve .project file when doing vf upgrade --rebuild #206

Merged
merged 5 commits into from
Jun 28, 2021

Conversation

cecep2
Copy link
Contributor

@cecep2 cecep2 commented May 22, 2021

Currently, if my venv project-venv contains a .project file, this file is not recreated when I call vf upgrade --rebuild project-venv. I think it is reasonable to expect the 'rebuild' command to restore this file.

@justinmayer
Copy link
Owner

Makes sense to me. Do you think we should set the variable scope to avoid the (admittedly small) risk that a global variable with the same name has already been defined? e.g.:

if begin; set -q _flag_rebuild; or test -n "$packages"; end
            set -l install_cmd
            set -l project_file_path
            […]

@cecep2
Copy link
Contributor Author

cecep2 commented Jun 9, 2021

Thank you! Good point - I've updated the file accordingly and also document the change in the docs.

@justinmayer
Copy link
Owner

Nice work on this, @cecep2. Much appreciated! 💯

@justinmayer justinmayer merged commit c54459c into justinmayer:master Jun 28, 2021
@cecep2 cecep2 deleted the preserve_project_files branch June 29, 2021 14:28
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.

2 participants