-
Notifications
You must be signed in to change notification settings - Fork 1k
Omit manifest entry for imported projects with no source/branch/version #1373
Comments
Would love to give this a shot this weekend :) |
@arbourd That would be great! 👍 It's holding up another PR (#1336) and I would love some help. I believe that you will want to make the change in |
Hey @carolynvs! I finally got around to looking at this last night and I definitely need some help. Here's my understanding of
In what instance would we not want to to pass an Passing a This commit is what I'm thinking:
Am I on the right track? Thanks! 😁 |
Sorry for the slow response. The requirement is to identify projects in the manifest that:
These constraints result in an "empty" entry in the manifest [[constraint]]
name = "github.com/example/A" They actually aren't necessary for the solver; the solver will include them in its calculations anyway because of the import statement analysis. So we would like to identify these empty constraints during import and remove them from the manifest before solving. That way they won't be included in the final manifest. |
This is something I neglected to think about or test. Thanks for the feedback. |
Currently when dep can't infer a constraint during import for a project,
gps.Any()
is used and an entry is added to the manifest that looks like this:Since we are going to start warning about these types of near-empty entries soon (see #1336), we should instead omit them from the manifest during import.
The text was updated successfully, but these errors were encountered: