MCPcopy
hub / github.com/jetify-com/devbox / Hash

Method Hash

internal/devconfig/config.go:393–408  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

391}
392
393func (c *Config) Hash() (string, error) {
394 data := []byte{}
395 for _, i := range c.included {
396 hash, err := i.Hash()
397 if err != nil {
398 return "", err
399 }
400 data = append(data, hash...)
401 }
402 hash, err := c.Root.Hash()
403 if err != nil {
404 return "", err
405 }
406 data = append(data, hash...)
407 return cachehash.Bytes(data), nil
408}
409
410func (c *Config) IsEnvsecEnabled() bool {
411 for _, i := range c.included {

Callers

nothing calls this directly

Calls 2

BytesFunction · 0.92
HashMethod · 0.65

Tested by

no test coverage detected