Mitchell Hashimoto
d01670f49b
Merge pull request #803 from hashicorp/f-type-eval-on-ast
...
Custom AST types can be type checked and evaluated
2015-01-14 22:03:46 -08:00
Mitchell Hashimoto
2abeb2d9ac
config: use new API
2015-01-14 22:03:15 -08:00
Mitchell Hashimoto
61ee63d842
config/lang/ast: remove unused Eval
2015-01-14 21:49:39 -08:00
Mitchell Hashimoto
8d2c60a8af
config/lang: eval
2015-01-14 21:48:20 -08:00
Mitchell Hashimoto
4302dbaf2a
config/lang: make TypeCheck implementable by other nodes
2015-01-14 21:18:22 -08:00
Mitchell Hashimoto
57adfe53f6
config/lang: use the new AST stuff
2015-01-14 20:58:46 -08:00
Mitchell Hashimoto
c96b3b9ddc
config/lang/ast: Eval
2015-01-14 20:37:16 -08:00
Mitchell Hashimoto
c4273974de
config/lang/ast: introduce Type
2015-01-14 20:13:35 -08:00
Mitchell Hashimoto
cef5f22fed
Merge pull request #802 from hashicorp/f-ast-transforms
...
config/lang: AST transforms into the visitor pattern
2015-01-14 16:40:43 -08:00
Mitchell Hashimoto
342b4d2d9f
config/lang: proper filename
2015-01-14 16:36:42 -08:00
Mitchell Hashimoto
1e79861b84
config/lang/ast: AST transforms are built-in
2015-01-14 16:36:01 -08:00
Mitchell Hashimoto
db02541d31
helper/schema: fix failing tests
...
/cc @svanharmelen - I think some logic changed after my refactor. I now
return Exists: true when Computed: true but the value might be blank to
note that the FieldReader FOUND a value, its just unknown. I think
before it didn't do that so the logic for GetOk has to be "does it exist
and is it _not_ computed"
Seems weird because I just realized there is no way to get the OLD value
of something if it is being computed now, but I looked and there are
tests that verify this and they're like... test #5 of Get. So, they're
not new meaning that must've been expected behavior? Hm. Let me know if
you find any other issues from acceptance tests
2015-01-14 15:38:18 -08:00
Mitchell Hashimoto
05de36b4ea
Merge pull request #796 from svanharmelen/f-test-issue-791
...
Adding a test for issue #791
2015-01-14 15:31:28 -08:00
Mitchell Hashimoto
d3c0543bf3
Merge pull request #797 from hashicorp/f-stronger-types
...
Force variables to be typed (internally)
2015-01-14 15:30:38 -08:00
Mitchell Hashimoto
e00ee1e5ee
helper/diff: fix failing test
2015-01-14 15:29:56 -08:00
Mitchell Hashimoto
dbe83af829
helper/schema: fix failing tests
2015-01-14 15:28:36 -08:00
Mitchell Hashimoto
b9eb4c8658
Merge pull request #799 from ceh/vet-conf-lang
...
config/lang: address vet reports
2015-01-14 15:24:59 -08:00
Mitchell Hashimoto
6535e86545
Merge pull request #800 from ggiamarchi/use_go_1.4
...
Now Go version must be at least 1.4
2015-01-14 15:23:40 -08:00
Guillaume Giamarchi
679936a12b
Now Go version must be at least 1.4
...
Command `go generate` appeared in Go 1.4
2015-01-14 23:51:02 +01:00
Emil Hessman
482460c4c8
config/lang: address vet reports
...
Fixes the following vet reports:
config/lang/check_types.go:98: arg n for printf verb %d of wrong type: *github.com/hashicorp/terraform/config/lang/ast.Concat
config/lang/lex.go:80: arg x.mode for printf verb %s of wrong type: lang.parserMode
2015-01-14 22:04:28 +01:00
Mitchell Hashimoto
9ee36269f5
Merge pull request #785 from hashicorp/f-formalize-interps
...
Formalize interpolation language into a real typed interpreted language
2015-01-14 12:19:45 -08:00
Mitchell Hashimoto
6e29ea0366
config/lang: some hoops to get the types to work
2015-01-14 12:18:51 -08:00
Mitchell Hashimoto
591610deea
config/lang: string to int
2015-01-14 12:02:26 -08:00
Mitchell Hashimoto
d12bf66403
config/lang: implicit builtins are coming in
2015-01-14 11:59:06 -08:00
Sander van Harmelen
cb37e10c6f
Adding a test for issue #791
...
Running this test on commit 47f02f80bc
from 6 days ago, is successful, but on master it now fails.
2015-01-14 20:50:58 +01:00
Mitchell Hashimoto
36b6601baf
config/lang: implicit type conversions
2015-01-14 11:47:20 -08:00
Mitchell Hashimoto
7062b2b952
Merge pull request #793 from ceh/cloudstack-err-checks
...
providers/cloudstack: fix err checks in tests
2015-01-14 11:15:23 -08:00
Emil Hessman
335d8fa1e6
builtin/providers/cloudstack: fix err checks in tests
...
Wrong return value is used to determine if an error occured.
Make sure to check the actual Error value that the functions return.
2015-01-14 19:54:29 +01:00
Mitchell Hashimoto
8ae14f06b3
config: variables must be typed
2015-01-14 10:40:43 -08:00
Mitchell Hashimoto
dd456871e9
config/lang: remove unused code
2015-01-14 10:11:29 -08:00
Mitchell Hashimoto
fcaa3d9194
Merge pull request #790 from ceh/docs-list
...
website: use lists throughout the docs instead of array
2015-01-14 09:49:51 -08:00
Emil Hessman
0cfbf4d8d9
website: use lists throughout the docs instead of array
2015-01-14 18:38:08 +01:00
Mitchell Hashimoto
241fc5bb39
helper/schema: diff floats properly
...
/cc @phinze - This is pretty straightforward, almost magically so. The
reason this works is because in `diffString` we use mapstructure[1] with
"weak decode mode" to just be responisble for turning anything into a
string.
[1]: https://github.com/mitchellh/mapstructure
2015-01-14 09:32:03 -08:00
Mitchell Hashimoto
6fadebc5d8
Merge pull request #769 from phinze/type-float-failing-diff-test
...
failing schema diff test for TypeFloat
2015-01-14 09:30:08 -08:00
Mitchell Hashimoto
5e8b300ca1
update CHANGELOG
2015-01-14 09:29:37 -08:00
Mitchell Hashimoto
577e2420b0
Revert "docs: consistent use of array configuration syntax"
...
This reverts commit 4893eb8b55
.
2015-01-14 09:28:25 -08:00
Mitchell Hashimoto
152e72ffa6
Merge pull request #773 from ceh/issue-691
...
helper/schema: fix panic when validating composite schema type
2015-01-14 09:28:11 -08:00
Mitchell Hashimoto
5b08cd6fc5
Merge pull request #779 from svanharmelen/f-fix-cloudstack-docs
...
website: Adding some needed references and updated a couple of passes
2015-01-14 09:24:47 -08:00
Mitchell Hashimoto
92af4801a1
config: reintroduce concat
2015-01-13 12:47:54 -08:00
Mitchell Hashimoto
8d51b6b1d4
config/lang: variadic functions
2015-01-13 12:40:47 -08:00
Mitchell Hashimoto
4af4c9e16c
config: add lookup function back
2015-01-13 12:06:04 -08:00
Mitchell Hashimoto
49fe0d5c7f
config: remove a lot of unused stuff
2015-01-13 11:54:30 -08:00
Mitchell Hashimoto
1ccad4d729
config: convert fucntions, put functions into Scope
2015-01-13 11:50:44 -08:00
Mitchell Hashimoto
4ba7de17a9
config/lang: call the proper functions on Scope
2015-01-13 11:27:10 -08:00
Mitchell Hashimoto
2b679572b4
config/lang: TypeCheck
2015-01-13 11:25:46 -08:00
Mitchell Hashimoto
8ce7ef6188
config/lang: implement identifier semantic check
2015-01-13 11:24:42 -08:00
Mitchell Hashimoto
5abbde3ac9
config: remove unused files
2015-01-13 10:32:03 -08:00
Mitchell Hashimoto
740c25d4ea
config: convert to config/lang
2015-01-13 10:27:57 -08:00
Mitchell Hashimoto
e68fbceebc
config/lang: fix bug parsing empty strings
2015-01-13 10:27:31 -08:00
Mitchell Hashimoto
c424a8a815
config/lang: FixedValueTransform
2015-01-13 10:10:33 -08:00