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

Avoid writing the status database for read-only commands. #1531

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Commits on Oct 24, 2024

  1. Extract more contractual constants.

    Extracted from microsoft#1514
    BillyONeal committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    bd544b0 View commit details
    Browse the repository at this point in the history
  2. Avoid writing the status database for read-only commands.

    Resolves microsoft/vcpkg#10812
    
    Depends on microsoft#1529
    Extracted from  microsoft#1514
    
    Splits database_load_check into database_load, which merely loads the current database, and database_load_collapse, which additionally smashes any outstanding update files.
    Splits get_installed_files into get_installed_files and get_installed_files_and_upgrade. The former avoids the format conversion and thus does not need to write.
    
    Reading commands database_load / get_installed_files:
    * export
    * list
    * owns
    * package_info
    * update
    
    Writing commands which use database_load_collapse / get_installed_files_and_upgrade. Also intend to call database_load_collapse at the end after successful completion so that the status file has all update records merged in where possible.
    * build
    * ci
    * install
    * remove
    * set-installed
    * upgrade
    BillyONeal committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    412ef61 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2024

  1. Configuration menu
    Copy the full SHA
    b39cc43 View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2024

  1. Merge remote-tracking branch 'origin/main' into read-only-database

    # Conflicts:
    #	include/vcpkg/base/contractual-constants.h
    BillyONeal committed Nov 1, 2024
    Configuration menu
    Copy the full SHA
    0f85ecf View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2024

  1. Configuration menu
    Copy the full SHA
    fb6914f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1f617c1 View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2024

  1. Configuration menu
    Copy the full SHA
    650dbf7 View commit details
    Browse the repository at this point in the history