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

Add short script to move vendor folder around #56

Merged

Commits on Mar 10, 2021

  1. Add short script to move vendor folder around

    **What**
    - Add Dockerfile testp to mov ethe vendor folder up from the function
      volder to function root. This allows the user to control the vendor
      folder and avoid collisions/validation errors from Go in modules mode
    - This new flow allows dynamic downloading of Go modules _or_ disabling
      Go modules and only using vendor. You can not use vendor _and_ modules
      at the same time due to how Go will validate that the vendor folder
      and the go.mod are insync
    
    Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
    LucasRoesler committed Mar 10, 2021
    Configuration menu
    Copy the full SHA
    e563678 View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2021

  1. Remove go mod tidy

    **What**
    - Remove the tidy step because it is not needed and does not work as
      expected
    
    Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
    LucasRoesler committed Mar 20, 2021
    Configuration menu
    Copy the full SHA
    60d2b6d View commit details
    Browse the repository at this point in the history
  2. Remove unneeded module check

    **What**
    - Remove check for modules = off from the middleware template. This
      isn't needed
    
    Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
    LucasRoesler committed Mar 20, 2021
    Configuration menu
    Copy the full SHA
    4fb83f2 View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2021

  1. Add script to manage go.mod and modules.txt

    **What**
    - Add scripting that handles copying the function's go.mod to the
      function root. This requires several mutations to handle renaming the
      module and dealig with local replacements of the function
    - Add scriptin to handle the vendor/modules.txt. It also handles
      mutations to deal with the local replacement of the function code
    
    Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
    LucasRoesler committed Mar 27, 2021
    Configuration menu
    Copy the full SHA
    0d4c9d0 View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2021

  1. Extra modules cleanup into a script and document it

    **What**
    - Extract the vendor and modules cleanup into a separate shell script.
      This provides more space for documenting each step cleanly.
    - This scripting also removes the need for the `GO_REPLACE.txt` hack,
      it will automatically modify any local replacements in the original
      go.mod file, so that they work as expected.
    - Update the README to describe how dependencies work in the three
      supported modes: modules with vendoring, modules without vendoring,
      and traditional vendoring via dep.
    
    Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
    LucasRoesler committed Apr 5, 2021
    Configuration menu
    Copy the full SHA
    31c5931 View commit details
    Browse the repository at this point in the history
  2. Handle case when function is not a module

    **What**
    - Add check and skip when the funciton folder is not a module
    Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
    LucasRoesler committed Apr 5, 2021
    Configuration menu
    Copy the full SHA
    28697c3 View commit details
    Browse the repository at this point in the history