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

[HPR-1190] Add packer-sdc fix command #190

Merged
merged 2 commits into from
Jul 14, 2023
Merged

Commits on Jul 13, 2023

  1. packer-sdc: Add fix sub-command

    Fix rewrites parts of the plugin codebase to address known issues or
    common workarounds used within plugins consuming the Packer plugin SDK.
    
    ```
    ~>  ./packer-sdc fix -check ../../../packer-plugin-tencentcloud
    Found the working directory
    /Users/wilken/Development/linux-dev/packer-plugin-tencentcloud
    gocty Unfixed!
    
    ```
    nywilken committed Jul 13, 2023
    Configuration menu
    Copy the full SHA
    5527585 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2023

  1. Update fix command

    This change is major refactor of the fix command, and it's underlying
    fixer interface. This change adds support for the `-diff` flag which
    displays the diff between the unfixed and fixed files, if available.
    
    Along with the refactor the ability to apply multiple fixes to the same
    file without potential write conflicts where previous changes were
    removed after reprocessing.
    
    * Add a scan function that returns a list of files to apply a fix on
    to provide flexibility in the future for collecting a list of files.
    
    * Replace cmp.Diff with github.com/pkg/diff for better file diffs
    * Return error when missing directory argument
    * Add error handling when trying to read any scanned files
    nywilken committed Jul 14, 2023
    Configuration menu
    Copy the full SHA
    5e36021 View commit details
    Browse the repository at this point in the history