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

Import functions from Terraform #37

Merged
merged 17 commits into from
Feb 19, 2020

Commits on Jan 21, 2020

  1. Import functions from Terraform

    * copy pasted the missing funcs & tests from github.com/hashicorp/terraform/lang/funcs/  39e609
    * forced github.com/bmatcuk/doublestar to use v1.1.5 so that TestFileSet passes; v1.2 had a different behavior.
    * renamed terraform's ReverseFunc to ReverseListFunc
    azr committed Jan 21, 2020
    Configuration menu
    Copy the full SHA
    571e23c View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2020

  1. Apply some code review changes

    azr committed Jan 22, 2020
    Configuration menu
    Copy the full SHA
    4029697 View commit details
    Browse the repository at this point in the history
  2. remove Timestamp functions

    as they are non deterministic
    azr committed Jan 22, 2020
    Configuration menu
    Copy the full SHA
    ab0a7c5 View commit details
    Browse the repository at this point in the history
  3. split ReplaceFunc into ReplaceFunc, ReplaceAllFunc and RegexpReplaceA…

    …llFunc
    
    *  so that the decision on wether to use a regular expression falls upon the caller and not a heuristic
    * and the caller can decide the number of times replace is done
    azr committed Jan 22, 2020
    Configuration menu
    Copy the full SHA
    b3ee7c0 View commit details
    Browse the repository at this point in the history
  4. test replace func

    azr committed Jan 22, 2020
    Configuration menu
    Copy the full SHA
    120ea08 View commit details
    Browse the repository at this point in the history
  5. Remove MakeFileFunc for now

    Quoting our discussion: zclconf#37 (comment)
    
    This one doesn't feel like a good fit for cty stdlib because it makes some assumptions about how we deal with the filesystem that are unlikely to be a good fit for all callers. If this were to be in cty we'd want to think about ways to let the calling application have more control over how filenames are resolved so that e.g. it could be safe to use the filesystem-related functions in an app with different security concerns, but that would likely make it a lot more complicated. So this will be done in another PR.
    azr committed Jan 22, 2020
    Configuration menu
    Copy the full SHA
    76240aa View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2020

  1. remove cidr, filesystem and crypto functions from import

    * they would be a lot to maintain or are not canonical functions
    azr committed Jan 24, 2020
    Configuration menu
    Copy the full SHA
    c9e60db View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2020

  1. remove a Terraform reference

    azr committed Jan 27, 2020
    Configuration menu
    Copy the full SHA
    b92e91b View commit details
    Browse the repository at this point in the history
  2. SliceFunc: change error message

    azr committed Jan 27, 2020
    Configuration menu
    Copy the full SHA
    d0ca986 View commit details
    Browse the repository at this point in the history
  3. lock go mod to 1.12 for now

    azr committed Jan 27, 2020
    Configuration menu
    Copy the full SHA
    4b47e44 View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2020

  1. remove base 64 encoding funcs

    azr committed Jan 31, 2020
    Configuration menu
    Copy the full SHA
    98aad05 View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2020

  1. remove encoding functions/tests

    azr committed Feb 3, 2020
    Configuration menu
    Copy the full SHA
    811b229 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8e00637 View commit details
    Browse the repository at this point in the history
  3. Update datetime.go

    azr committed Feb 3, 2020
    Configuration menu
    Copy the full SHA
    038b34f View commit details
    Browse the repository at this point in the history
  4. go mod tidy

    azr committed Feb 3, 2020
    Configuration menu
    Copy the full SHA
    28fcda2 View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2020

  1. TimeAddFunc: use parseTimestamp

    azr committed Feb 13, 2020
    Configuration menu
    Copy the full SHA
    446191d View commit details
    Browse the repository at this point in the history
  2. update MergeFunc from Terraform

    azr committed Feb 13, 2020
    Configuration menu
    Copy the full SHA
    5738b88 View commit details
    Browse the repository at this point in the history