Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ecosystem_versions replaces package_manager field #147

Merged
merged 1 commit into from
Jul 11, 2023

Conversation

jeffwidman
Copy link
Member

@jeffwidman jeffwidman commented Jul 11, 2023

I confused myself in the previous two PR's... the Ecosystem field is actually removed, and the PackageManager field is replaced by the EcosystemVersions field.

As explained in #146, there may
be an inner PackageManager field, which is optional. But no need to
map it out in the struct, at least not yet.

For background context:

Caught this discrepancy over here:

@jeffwidman jeffwidman requested a review from a team as a code owner July 11, 2023 18:49
I confused myself in the previous two PR's... the `Ecosystem` field is
actually removed, and the top-level `PackageManager` field is replaced by the
`EcosystemVersions` field.

As explained in #146, there may
be an inner `PackageManager` field, which is optional. But no need to
map it out in the struct, at least not yet.

For background context:
* #145
* #146
* dependabot/dependabot-core#7492
* dependabot/dependabot-core#7517

Caught this discrepancy over here:
* https://github.com/dependabot/smoke-tests/pull/98/files#r1260099204
@jeffwidman jeffwidman force-pushed the ecosystem_versions-replace-package-manager-field branch from 10f1552 to 8a8dbc0 Compare July 11, 2023 18:50
internal/model/update.go Show resolved Hide resolved
@jeffwidman
Copy link
Member Author

I tried to test this against the smoke tests using a codespace and was able to successfully build it, but then ran into the following error:

@jeffwidman ➜ /workspaces/smoke-tests (migrate-record-package-manager-version-to-record-ecosystem-versions ✗) $ ../cli/dependabot test -f tests/smoke-bundler.yaml 
    cli | 2023/07/11 19:11:35 using image ghcr.io/github/dependabot-update-job-proxy/dependabot-update-job-proxy:latest at sha256:3268f53f957cc99b75cadf172be86f9d92a4400038c59357a4b05af12b66ed50
    cli | 2023/07/11 19:11:35 using image ghcr.io/dependabot/dependabot-updater-cargo at sha256:c4ba35d041c7b4519f7b289e00940e70f1a3df102f8f581f6d0533a8827c99f4
  proxy | 2023/07/11 19:11:36 proxy starting, commit: d7a27fb6ccdfcb34a156f90abed68233895dd023
  proxy | 2023/07/11 19:11:36 initializing metrics client: No address passed and autodetection from environment failed
  proxy | 2023/07/11 19:11:36 Listening (:1080)
  proxy | 2023/07/11 19:11:37 0/0 calls cached (0%)
    cli | 2023/07/11 19:11:38 failed to start exec: http: invalid Host header

At this point, I think it's going to be faster to merge/release and test that way than keep futzing with this.

@jeffwidman jeffwidman enabled auto-merge (squash) July 11, 2023 19:13
@jeffwidman jeffwidman disabled auto-merge July 11, 2023 19:14
@jeffwidman jeffwidman merged commit b6f07ab into main Jul 11, 2023
@jeffwidman jeffwidman deleted the ecosystem_versions-replace-package-manager-field branch July 11, 2023 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants