Skip to content

Commit

Permalink
Fix applying defaults
Browse files Browse the repository at this point in the history
- Need to assign back to a new variable.
- Assign before turning into a pointer.
- Update changelog
  • Loading branch information
danielrbradley committed Dec 11, 2024
1 parent f300a6b commit aee8bb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ CHANGELOG

- Reduce binary size by stripping debug information

- Apply default dependencies consistently.

## 0.18.0 (2024-11-26)

### Improvements
Expand Down
2 changes: 1 addition & 1 deletion pkg/codegen/java/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -2039,10 +2039,10 @@ func generateModuleContextMap(tool string, pkg *schema.Package) (map[string]*mod
panic(fmt.Sprintf("Failed to cast `pkg.Language[\"java\"]`=%v to `PackageInfo`", raw))
}
}
javaInfo = javaInfo.WithDefaultDependencies()
info = &javaInfo
infos[def] = info
}
info.WithDefaultDependencies()
return info
}
infos[pkg] = getPackageInfo(pkg.Reference())
Expand Down

0 comments on commit aee8bb3

Please sign in to comment.