Skip to content

Commit 0dd05aa

Browse files
committed
go-script-bash v1.2.1
1 parent b2ad688 commit 0dd05aa

File tree

3 files changed

+26
-14
lines changed

3 files changed

+26
-14
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ scripts can be in any other interpreted language.__
195195
First you'll need a copy of this framework available in your project sources.
196196
Archives are available at:
197197

198-
- https://github.com/mbland/go-script-bash/archive/v1.2.0.tar.gz
199-
- https://github.com/mbland/go-script-bash/archive/v1.2.0.zip
198+
- https://github.com/mbland/go-script-bash/archive/v1.2.1.tar.gz
199+
- https://github.com/mbland/go-script-bash/archive/v1.2.1.zip
200200

201201
You can also add this repository to your project as a [`Git
202202
submodule`](https://git-scm.com/book/en/v2/Git-Tools-Submodules):

RELEASE.md

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# go-script-bash v1.2.0
1+
# go-script-bash v1.2.1
22

3-
This release adds a stack trace feature to the public API.
3+
This release enhances the public stack trace feature and adds it to `@go.log FATAL` output.
44

55
## The `./go` script: a unified development environment interface
66

@@ -16,19 +16,31 @@ This software is made available as [Open Source software](https://opensource.org
1616

1717
## What's new in this release
1818

19-
### Print stack traces
19+
### Make `@go.print_stack_trace` take a numerical `skip_callers` argument
2020

21-
The `@go.print_stack_trace` function is now part of the public API. Its original use case was to provide more helpful error messages from `. "$_GO_USE_MODULES"`, but it's generally useful. See the function comments in `go-core.bash` and `./go test --edit core/print-stack-trace` for more information.
21+
Previously `@go.print_stack_trace` would only skip the immediate caller if the first argument was not null. Now it enforces that the number be a positive integer, in order to skip over the specified number of callers while printing the stack trace. This was done to support better `@go.log FATAL` output, described below.
2222

23-
## Changes since v1.1.2
23+
Normally an API change like this would warrant a major version bump, but since the impact should be minimal, it any potential for impact exists at all, it's included in this patch release.
24+
25+
### Include stack trace output on `@go.log FATAL` conditions
26+
27+
`@go.log FATAL` now prints a stack trace before exiting the process, since such information is generally useful under `FATAL` conditions. Every function in the `log` module that calls `@go.log FATAL` removes itself from the stack trace, so the top of the stack shows the location of the user code that triggered the condition, rather than the location of the `log` module function.
28+
29+
## Changes since v1.2.0
2430

2531
<pre>
26-
fb6f3ae Mike Bland <[email protected]>
27-
Merge pull request #27 from mbland/stack-trace
32+
b2ad688 Mike Bland <[email protected]>
33+
Merge pull request #28 from mbland/stack-trace
34+
35+
965782d Mike Bland <[email protected]>
36+
log: Add stack trace to FATAL output
37+
38+
a0f4413 Mike Bland <[email protected]>
39+
stack-trace: Move, add helpers to environment.bash
2840

29-
30790c9 Mike Bland <[email protected]>
30-
use: Show stack trace when an import fails
41+
cd57da0 Mike Bland <[email protected]>
42+
print-stack-trace: Add go-core stack test helper
3143

32-
8563f4d Mike Bland <[email protected]>
33-
core: Add @go.print_stack_trace to public API
44+
8424338 Mike Bland <[email protected]>
45+
print_stack_trace: Make skip_callers arg numerical
3446
</pre>

go-core.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ fi
3939
# This and other variables are exported, so that command scripts written in
4040
# languages other than Bash (and hence run in new processes) can access them.
4141
# See `./go vars` and `./go help vars`.
42-
declare -r -x _GO_CORE_VERSION='v1.2.0'
42+
declare -r -x _GO_CORE_VERSION='v1.2.1'
4343

4444
# The URL of the framework's original source repository
4545
declare -r -x _GO_CORE_URL='https://github.com/mbland/go-script-bash'

0 commit comments

Comments
 (0)