Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

Commit

Permalink
fix: Use hashing FormatV1 (#258)
Browse files Browse the repository at this point in the history
Reverts #252 until we drop migrations and can upgrade to the new hashing format
  • Loading branch information
erezrokah authored May 17, 2022
1 parent 5753765 commit 646daa5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion provider/schema/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ func hashUUID(objs interface{}) (uuid.UUID, error) {
// Use SHA1 because it's fast and is reasonably enough protected against accidental collisions.
// There is no scenario here where intentional created collisions could do harm.
digester := crypto.SHA1.New()
hash, err := hashstructure.Hash(objs, hashstructure.FormatV2, nil)
// TODO: Use FormatV2 once we drop db migrations
hash, err := hashstructure.Hash(objs, hashstructure.FormatV1, nil)
if err != nil {
return uuid.Nil, err
}
Expand Down

0 comments on commit 646daa5

Please sign in to comment.