switchupcb / copygen

Go generator to copy values from type to type and fields from struct to struct (copier without reflection). Generate any code based on types.
https://switchupcb.com/copygen-license-exception/
GNU General Public License v3.0
349 stars 22 forks source link

CopyGen v0.3 #17

Closed switchupcb closed 2 years ago

switchupcb commented 2 years ago

Version 0.3 will include the following changes:

BONUS

Status Started on April 5, 2022. Expectation of completion on April 12, 2022 (as of April 10, 2022). Packaging attempted on April 12, 2022. Completed April 13, 2022.

switchupcb commented 2 years ago

There was an options regression on the refactor. All options have been fixed except for depth which is being fixed. There is also a bug regarding the comment placement which effects the output of the current state. Finally, I need to remove global variables from the latest commit (unstable). These issues are identified and only require implementation. As a result, v0.3 is expected to come later today.

Fixed: https://github.com/switchupcb/copygen/commit/ab6f082b8851fd341cb661049f13bc08bd899d00

switchupcb commented 2 years ago

Free floating comments in their specific groups are causing tests to fail (on some machines); albeit with correct code output. This is caused by separate line endings on Windows vs. Linux, Mac, etc as confirmed in https://github.com/switchupcb/copygen/actions/runs/2164315170. While this is handled in the tests, it must also be handled when we check for the positions of comments at https://github.com/switchupcb/copygen/blob/main/cli/parser/keep.go#L110.

Fixed: https://github.com/switchupcb/copygen/commit/dfa12d2f3f639a1aed442fc67e60e3af5d170fbb

switchupcb commented 2 years ago

https://github.com/switchupcb/copygen/releases/tag/v0.3.0

go install github.com/switchupcb/copygen@v0.3.0