Skip to content

go.mod/MODULE.bazel update from indirect to direct marks other go_* targets as changed #105

@darkrift

Description

@darkrift

When updating go.mod to switch a dependency from indirect to direct and add it to MODULE.bazel, other go targets are marked as changed.

Reproducer : https://github.com/darkrift/determinator_go_mod_rebuild_all

$ ~/Downloads/target-determinator.darwin.arm64 046e13d2d93d1c7caae217461a0c86c428da7a50
2025/03/06 10:47:45 Processing revision 'before' (sha: 046e13d2d93d1c7caae217461a0c86c428da7a50)
2025/03/06 10:47:46 Running cquery on deps(//...)
2025/03/06 10:47:50 Running cquery on //...
2025/03/06 10:47:51 Finding compatible targets under //...
2025/03/06 10:47:52 Matching labels to configurations
2025/03/06 10:47:53 Hashing targets
2025/03/06 10:48:04 Processing revision 'after' (current working directory state)
2025/03/06 10:48:06 Running cquery on deps(//...)
2025/03/06 10:48:11 Running cquery on //...
2025/03/06 10:48:12 Finding compatible targets under //...
2025/03/06 10:48:13 Matching labels to configurations
2025/03/06 10:48:13 Hashing targets
//services/a
//services/a:a_lib
//services/b
//services/b:b_lib
2025/03/06 10:48:15 Finished after 32.877560584s

I don't think the issue is with target-determinator, but opening it here for the investigation and figure out where to open the real issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions