Skip to content

Commit

Permalink
use lockfile key and version instead of package name and version for …
Browse files Browse the repository at this point in the history
…external deps hash (#2424)

Co-authored-by: Nathan Hammond <nathan.hammond@vercel.com>
  • Loading branch information
chris-olszewski and nathanhammond authored Oct 27, 2022
1 parent 19ccc18 commit 88f37f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/internal/context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ func (c *Context) resolveDepGraph(wg *errgroup.Group, workspace *fs.PackageJSON,
pkg.Mu.Lock()
pkg.TransitiveDeps = append(pkg.TransitiveDeps, lockfilePkg.Key)
pkg.Mu.Unlock()
resolvedDepsSet.Add(fmt.Sprintf("%v@%v", directDepName, lockfilePkg.Version))
resolvedDepsSet.Add(fmt.Sprintf("%s@%s", lockfilePkg.Key, lockfilePkg.Version))

allDeps, ok := c.Lockfile.AllDependencies(lockfilePkg.Key)

Expand Down

0 comments on commit 88f37f4

Please sign in to comment.