• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

letsencrypt / pebble / 13509536704

24 Feb 2025 10:54PM UTC coverage: 7.295%. Remained the same
13509536704

Pull #487

github

web-flow
build(deps): bump github.com/go-jose/go-jose/v4 from 4.0.4 to 4.0.5

Bumps [github.com/go-jose/go-jose/v4](https://github.com/go-jose/go-jose) from 4.0.4 to 4.0.5.
- [Release notes](https://github.com/go-jose/go-jose/releases)
- [Changelog](https://github.com/go-jose/go-jose/blob/main/CHANGELOG.md)
- [Commits](https://github.com/go-jose/go-jose/compare/v4.0.4...v4.0.5)

---
updated-dependencies:
- dependency-name: github.com/go-jose/go-jose/v4
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #487: build(deps): bump github.com/go-jose/go-jose/v4 from 4.0.4 to 4.0.5

321 of 4400 relevant lines covered (7.3%)

0.34 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/cmd/command.go
1
package cmd
2

3
import (
4
        "encoding/json"
5
        "fmt"
6
        "os"
7
        "os/signal"
8
        "syscall"
9
)
10

11
// ReadConfigFile takes a file path as an argument and attempts to
12
// unmarshal the content of the file into a struct containing a
13
// configuration of a Pebble component.
14
//
15
// Lifted from
16
//
17
//        https://raw.githubusercontent.com/letsencrypt/boulder/master/cmd/shell.go
18
func ReadConfigFile(filename string, out interface{}) error {
×
19
        configData, err := os.ReadFile(filename)
×
20
        if err != nil {
×
21
                return err
×
22
        }
×
23
        return json.Unmarshal(configData, out)
×
24
}
25

26
// FailOnError exits and prints an error message if we encountered a problem
27
//
28
// Lifted from
29
//
30
//        https://raw.githubusercontent.com/letsencrypt/boulder/master/cmd/shell.go
31
func FailOnError(err error, msg string) {
×
32
        if err != nil {
×
33
                fmt.Fprintf(os.Stderr, "%s: %s\n", msg, err)
×
34
                os.Exit(1)
×
35
        }
×
36
}
37

38
// CatchSignals catches SIGTERM, SIGINT, SIGHUP and executes a callback
39
// method before exiting
40
func CatchSignals(callback func()) {
×
41
        sigChan := make(chan os.Signal, 1)
×
42
        signal.Notify(sigChan, syscall.SIGTERM)
×
43
        signal.Notify(sigChan, syscall.SIGINT)
×
44
        signal.Notify(sigChan, syscall.SIGHUP)
×
45

×
46
        <-sigChan
×
47
        if callback != nil {
×
48
                callback()
×
49
        }
×
50

51
        os.Exit(0)
×
52
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc