Commit Graph

109 Commits (f2dbf80badc8c7385a7b44bb040ae5e8550e7e60)

Author SHA1 Message Date
Alisdair McDiarmid 37006c5841 lang: Fix non-string key panics in map function
6 years ago
James Bardin 0bd40fd496
Merge pull request #24265 from hashicorp/jbardin/cty-update
6 years ago
James Bardin d999d43483 remove old funcs code
6 years ago
Martin Atkins 67d95b97ce lang/funcs: templatefile requires valid variable names
6 years ago
Martin Atkins ec9f950b3f lang/funcs: Test actual error messages from templatefile
6 years ago
James Bardin 529271e0be update merge docs to match behavior
6 years ago
James Bardin f5bf9aa55d make the merge function more precise
6 years ago
George Christou 91100c003c lang/funcs: Add more `trim*` functions (#23016)
6 years ago
Parviz 6eaf1c23f9 lang/funcs: don't panic when transpose produces empty result
6 years ago
Martin Atkins 39e609d5fd vendor: switch to HCL 2.0 in the HCL repository
6 years ago
Martin Atkins f84ab99b7d lang/funcs: cidrsubnets function
7 years ago
Jeet Parekh bcc69c05bb lang/funcs: parseint function
7 years ago
Pam Selle f9ebae749c
Merge pull request #22707 from vsimon/spell
7 years ago
Vicken Simonian 853a0e0677 docs: Minor spelling and typo fixes
7 years ago
Brian Flad 19cf34114f
lang/funcs: Switch fileset() function glob implementation to github.com/bmatcuk/doublestar to support additional glob patterns
7 years ago
Brian Flad 769f626a0e
lang/funcs: Remove homedir.Expand() and refactor path trimming with filepath.Rel() in fileset() function
7 years ago
Brian Flad 820b79d91d
lang/funcs: Clarification update to MakeFileSetFunc comment for filepath.ToSlash usage
7 years ago
Brian Flad af7f6ef441
lang/funcs: Update fileset() function to include path as separate first argument, automatically trim the path argument from results, and ensure results are always canonical with forward slash path separators
7 years ago
Brian Flad d48d9ed766
lang/funcs: Add fileset function
7 years ago
Alex Pilon e2eb70b737
remove satori/go.uuid in favor of google/uuid
7 years ago
Kristin Laemmert 2b14a6b332
lang/funcs: lookup() can work with maps of lists, maps and objects (#22269)
7 years ago
Radek Simko 5c30bafee0
Merge pull request #22119 from hashicorp/b-chunklist-empty-list
7 years ago
Radek Simko 736fda1613
lang/funcs: Pass through empty list in chunklist
7 years ago
Saverio Miroddi 983af7a183 Allow null values in Compact function
7 years ago
Andreas Sommer 042aead714 lang/funcs: add "abspath" function (#21409)
7 years ago
Paul Tyng ebea080aca Add missing bool case
7 years ago
Pam Selle 1255ad6722 Don't allow nulls in calls to merge
7 years ago
Lars Eric Scheidler aa07806bfc lang/funcs: New "uuidv5" function
7 years ago
Kristin Laemmert c163ba71db simplify
7 years ago
Kristin Laemmert 30a924e162 lang/funcs: `matchkeys` - unify type for keys and searchset
7 years ago
Kristin Laemmert f2a14d7c18 lang/funcs: fix error when `matchkeys` encountered a variable
7 years ago
Martin Atkins 55794eb658 lang/funcs: Don't panic when distinct called with empty list
7 years ago
Martin Atkins 742deca3e9 lang/funcs: Short-circuit if start or end index is unknown
7 years ago
Kristin Laemmert b1d0b1383f
lang/funcs: remove sethaselement function and documentation (#21164)
7 years ago
James Bardin 3ab496d4b1 allow sets and tuples in contains function
7 years ago
James Bardin 19bddee11b more precise types handling in coalescelist
7 years ago
James Bardin 359f057a16 allow chunklist to handle unknowns
7 years ago
James Bardin 93ef015336 more precise type handling in flatten
7 years ago
James Bardin 81e04c3050 more precise type handling in slice
7 years ago
Kristin Laemmert 8520f4e4a5
* lang/funcs/flatten: accept sets and tuples, return tuples
7 years ago
Martin Atkins 6adcc7ab73 vendor: go get github.com/zclconf/go-cty@master
7 years ago
Kristin Laemmert 394cf7f25e
lang/funcs: add acc tests for functions (#21112)
7 years ago
Kristin Laemmert d4669246c7
funcs/coalesce: return the first non-null, non-empty-string element from a sequence (#21002)
7 years ago
Martin Atkins 096b1bb87b lang/funcs: Port the "reverse" function from the old functions set
7 years ago
Martin Atkins 2b1e650df2 lang/funcs: Fix out-of-bounds ArgError in templatefile function
7 years ago
Brian Flad 398fe8652d
config: Mention other file hashing functions when file() detects unsupported contents
7 years ago
Brian Flad 81bdaa8c38
lang/funcs: Fix filebase64sha256 function hashing algorithm
7 years ago
Martin Atkins f8a6f66be4 lang/funcs: Fix panic in "join" when an element is null
7 years ago
Martin Atkins 954d38e870 lang: New file-hashing functions
7 years ago
Martin Atkins ecaaa91da9 lang/funcs: Factor out the various hash function implementations
7 years ago