Skip to content

Commit df9a033

Browse files
committed
use xtrace on local setups
1 parent 364b79f commit df9a033

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

hermetic_build/DEVELOPMENT.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,19 @@ python hermetic_build/library_generation/cli/entry_point.py generate \
217217
--api-definitions-path=/workspace/apis
218218
```
219219

220-
# Debug the library generation container
220+
# Debugging tips
221+
## Debug the scripts
222+
Especially on local setups, consider adding the `xtrace` (`set -x`) flag to
223+
- `hermetic_build/library_generation/generate_library.sh`
224+
- `hermetic_build/library_generation/utils/utilities.sh`
225+
226+
This will allow you to observe how the tools you prepared in `~/.library_generation` are being used.
227+
228+
229+
## Debug the library generation container
221230
If you are working on changing the way the containers are created, you may want
222231
to inspect the containers to check the setup.
223-
It would be convenient in such case to have a text editor/viewer available.
232+
It would be convenient in such case to have a text editor/viewer available.
224233
You can achieve this by modifying the Dockerfile as follows:
225234

226235
```dockerfile

hermetic_build/library_generation/generate_library.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
set -exo pipefail
3+
set -eo pipefail
44

55
# parse input parameters
66
while [[ $# -gt 0 ]]; do

hermetic_build/library_generation/utils/utilities.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
set -exo pipefail
3+
set -eo pipefail
44
utilities_script_dir=$(dirname "$(realpath "${BASH_SOURCE[0]}")")
55

66
# Utility functions used in `generate_library.sh` and showcase generation.

0 commit comments

Comments
 (0)