Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cwe1ss/terramate-scripts-bug
https://github.com/cwe1ss/terramate-scripts-bug
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/cwe1ss/terramate-scripts-bug
- Owner: cwe1ss
- License: mit
- Created: 2024-02-16T17:52:57.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-02-16T18:07:13.000Z (9 months ago)
- Last Synced: 2024-02-16T19:27:18.158Z (9 months ago)
- Language: HCL
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Minimum repo for an issue with incorrectly ordered Terramate script commands when using `after`.
To reproduce, run the following command in the project root:
```bash
terramate script run drift
```The output is as follows. As you can see, sometimes "cmd-2" is printed before "cmd-1".
```bash
Script 1 at /imports/scripts.tm.hcl:1,1-9,2 having 1 job(s)
/stacks/management/stack-b (script:1 job:0.0)> cmd.exe /C echo cmd-1
cmd-1
/stacks/management/stack-b (script:1 job:0.1)> cmd.exe /C echo cmd-2
cmd-2
/stacks/management/stack-a (script:1 job:0.1)> cmd.exe /C echo cmd-2
cmd-2
/stacks/management/stack-a (script:1 job:0.0)> cmd.exe /C echo cmd-1
cmd-1
/stacks/management/stack-c (script:1 job:0.0)> cmd.exe /C echo cmd-1
cmd-1
/stacks/management/stack-c (script:1 job:0.1)> cmd.exe /C echo cmd-2
cmd-2
/stacks/operations/stack-a (script:1 job:0.0)> cmd.exe /C echo cmd-1
cmd-1
/stacks/operations/stack-a (script:1 job:0.1)> cmd.exe /C echo cmd-2
cmd-2
/stacks/network/stack-a (script:1 job:0.0)> cmd.exe /C echo cmd-1
cmd-1
/stacks/network/stack-a (script:1 job:0.1)> cmd.exe /C echo cmd-2
cmd-2
/stacks/network/stack-b (script:1 job:0.1)> cmd.exe /C echo cmd-2
cmd-2
/stacks/network/stack-b (script:1 job:0.0)> cmd.exe /C echo cmd-1
cmd-1
/stacks/operations/stack-b (script:1 job:0.0)> cmd.exe /C echo cmd-1
cmd-1
/stacks/operations/stack-b (script:1 job:0.1)> cmd.exe /C echo cmd-2
cmd-2
```