Fix upgrade path from implicit v1 to explicit v2 for pkg.go.dev#602
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR moves the module and internal references from the implicit v1 import path to the explicit github.com/internetarchive/Zeno/v2 path so Go module tooling and pkg.go.dev resolve the v2 module correctly.
Changes:
- Updates
go.modmodule path togithub.com/internetarchive/Zeno/v2. - Rewrites internal, CLI, model, e2e, and test imports to use the
/v2module path. - Keeps crawler functionality unchanged; changes are import/module path maintenance.
Reviewed changes
Copilot reviewed 129 out of 129 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| go.mod | Changes module path to /v2. |
| main.go | Updates CLI package import to /v2. |
| cmd/cmd.go | Updates config/preprocessor imports. |
| cmd/get.go | Updates headless archiver import. |
| cmd/get_hq.go | Updates command dependencies imports. |
| cmd/get_list.go | Updates command dependencies imports. |
| cmd/get_url.go | Updates command dependencies imports. |
| cmd/utils.go | Updates utils import. |
| e2e/e2e.go | Updates e2e, cmd, controler, and log imports. |
| e2e/test/autofinish/autofinish_test.go | Updates e2e helper import. |
| e2e/test/cloudflare204/cloudflare204_test.go | Updates e2e helper import. |
| e2e/test/domainscrawl/domainscrawl_test.go | Updates e2e helper import. |
| e2e/test/getlist/getlist_test.go | Updates e2e helper import. |
| e2e/test/headless/ok200/ok200_test.go | Updates e2e helper import. |
| e2e/test/nonutf8encoding/contenttype/contenttype_test.go | Updates e2e imports. |
| e2e/test/nonutf8encoding/metacharset/metacharset_test.go | Updates e2e imports. |
| e2e/test/nxdomain/nxdomain_test.go | Updates e2e helper import. |
| internal/pkg/api/api.go | Updates config/stats imports. |
| internal/pkg/archiver/connutil/connutil.go | Updates archiver support imports. |
| internal/pkg/archiver/discard/discard.go | Updates discard package imports. |
| internal/pkg/archiver/discard/discarder/akamai/akamai.go | Updates stats import. |
| internal/pkg/archiver/discard/discarder/cloudflare/cloudflare.go | Updates stats import. |
| internal/pkg/archiver/discard/discarder/contentlength/contentlength.go | Updates config import. |
| internal/pkg/archiver/discard/discarder/warcdiscardstatus/warcdiscardstatus.go | Updates config import. |
| internal/pkg/archiver/discard/reasoncode/reasoncode.go | Updates cloudflare discard import. |
| internal/pkg/archiver/general/archiver.go | Updates general archiver imports. |
| internal/pkg/archiver/general/body.go | Updates body handling imports. |
| internal/pkg/archiver/headless/archiver.go | Updates headless archiver imports. |
| internal/pkg/archiver/headless/body.go | Updates connection/log imports. |
| internal/pkg/archiver/headless/browser.go | Updates config/log imports. |
| internal/pkg/archiver/headless/bx_logger.go | Updates log/models imports. |
| internal/pkg/archiver/headless/headless.go | Updates log import. |
| internal/pkg/archiver/headless/waitgroup.go | Updates log import. |
| internal/pkg/archiver/warc.go | Updates WARC setup imports. |
| internal/pkg/archiver/worker.go | Updates worker dependency imports. |
| internal/pkg/config/config.go | Updates internal config dependencies. |
| internal/pkg/consul/consul.go | Updates config/log imports. |
| internal/pkg/controler/channels.go | Updates models import. |
| internal/pkg/controler/pause/pause.go | Updates stats import. |
| internal/pkg/controler/pause/pause_test.go | Updates stats test import. |
| internal/pkg/controler/pipeline.go | Updates pipeline dependency imports. |
| internal/pkg/controler/signal.go | Updates log import. |
| internal/pkg/controler/watchers/disk.go | Updates pause/log imports. |
| internal/pkg/controler/watchers/disk_unix.go | Updates config import. |
| internal/pkg/controler/watchers/disk_windows.go | Updates config import. |
| internal/pkg/controler/watchers/warc.go | Updates watcher dependency imports. |
| internal/pkg/finisher/finisher.go | Updates finisher dependency imports. |
| internal/pkg/log/config.go | Updates config/ringbuffer imports. |
| internal/pkg/log/dumper/dumper.go | Updates dumper dependency imports. |
| internal/pkg/log/log.go | Updates ringbuffer import. |
| internal/pkg/postprocessor/assets.go | Updates asset extraction imports. |
| internal/pkg/postprocessor/assets_test.go | Updates asset test imports. |
| internal/pkg/postprocessor/item.go | Updates item postprocessing imports. |
| internal/pkg/postprocessor/outlinks.go | Updates outlink extraction imports. |
| internal/pkg/postprocessor/outlinks_test.go | Updates outlink test imports. |
| internal/pkg/postprocessor/postprocessor.go | Updates postprocessor imports. |
| internal/pkg/postprocessor/utils.go | Updates models import. |
| internal/pkg/postprocessor/extractor/base.go | Updates base extractor imports. |
| internal/pkg/postprocessor/extractor/base_test.go | Updates models test import. |
| internal/pkg/postprocessor/extractor/css.go | Updates CSS extractor imports. |
| internal/pkg/postprocessor/extractor/css_embedded.go | Updates embedded CSS imports. |
| internal/pkg/postprocessor/extractor/css_test.go | Updates CSS test imports. |
| internal/pkg/postprocessor/extractor/html.go | Updates HTML extractor imports. |
| internal/pkg/postprocessor/extractor/html_document.go | Updates HTML document imports. |
| internal/pkg/postprocessor/extractor/html_document_test.go | Updates models test import. |
| internal/pkg/postprocessor/extractor/html_test.go | Updates HTML test imports. |
| internal/pkg/postprocessor/extractor/json.go | Updates JSON extractor imports. |
| internal/pkg/postprocessor/extractor/json_test.go | Updates JSON test imports. |
| internal/pkg/postprocessor/extractor/link_header.go | Updates models import. |
| internal/pkg/postprocessor/extractor/link_header_test.go | Updates link-header test imports. |
| internal/pkg/postprocessor/extractor/m3u8.go | Updates models import. |
| internal/pkg/postprocessor/extractor/main_test.go | Updates config test import. |
| internal/pkg/postprocessor/extractor/object_storage.go | Updates object storage imports. |
| internal/pkg/postprocessor/extractor/object_storage_azure.go | Updates Azure extractor imports. |
| internal/pkg/postprocessor/extractor/object_storage_s3.go | Updates models import. |
| internal/pkg/postprocessor/extractor/object_storage_test.go | Updates object storage test import. |
| internal/pkg/postprocessor/extractor/pdf.go | Updates models import. |
| internal/pkg/postprocessor/extractor/pdf_test.go | Updates PDF test imports. |
| internal/pkg/postprocessor/extractor/resolve.go | Updates models import. |
| internal/pkg/postprocessor/extractor/resolve_test.go | Updates resolve test imports. |
| internal/pkg/postprocessor/extractor/utils.go | Updates models import. |
| internal/pkg/postprocessor/extractor/xml.go | Updates XML extractor imports. |
| internal/pkg/postprocessor/extractor/xml_test.go | Updates XML test imports. |
| internal/pkg/postprocessor/sitespecific/facebook/facebook.go | Updates models import. |
| internal/pkg/postprocessor/sitespecific/github/github.go | Updates log import. |
| internal/pkg/postprocessor/sitespecific/ina/ina.go | Updates INA extractor imports. |
| internal/pkg/postprocessor/sitespecific/reddit/api.go | Updates Reddit extractor imports. |
| internal/pkg/postprocessor/sitespecific/truthsocial/account.go | Updates Truth Social account imports. |
| internal/pkg/postprocessor/sitespecific/truthsocial/post.go | Updates models import. |
| internal/pkg/postprocessor/sitespecific/truthsocial/status.go | Updates models import. |
| internal/pkg/postprocessor/sitespecific/truthsocial/truthsocial.go | Updates Truth Social imports. |
| internal/pkg/preprocessor/exclusion.go | Updates models import. |
| internal/pkg/preprocessor/exclusion_test.go | Updates models test import. |
| internal/pkg/preprocessor/pathloop.go | Updates config import. |
| internal/pkg/preprocessor/pathloop_test.go | Updates config test import. |
| internal/pkg/preprocessor/preprocessor.go | Updates preprocessor dependencies. |
| internal/pkg/preprocessor/seencheck/seencheck.go | Updates models import. |
| internal/pkg/preprocessor/sitespecific/npr/npr.go | Updates models import. |
| internal/pkg/preprocessor/sitespecific/reddit/reddit.go | Updates models import. |
| internal/pkg/preprocessor/sitespecific/sitespecific.go | Updates site-specific imports. |
| internal/pkg/preprocessor/sitespecific/sitespecific_test.go | Updates models test import. |
| internal/pkg/preprocessor/sitespecific/tiktok/tiktok.go | Updates models import. |
| internal/pkg/preprocessor/sitespecific/truthsocial/truthsocial.go | Updates models import. |
| internal/pkg/preprocessor/url_cgo.go | Updates URL preprocessor imports. |
| internal/pkg/preprocessor/url_cgofree.go | Updates URL preprocessor imports. |
| internal/pkg/preprocessor/url_test.go | Updates URL test imports. |
| internal/pkg/reactor/reactor.go | Updates reactor imports. |
| internal/pkg/reactor/reactor_test.go | Updates reactor test imports. |
| internal/pkg/reactor/state.go | Updates models import. |
| internal/pkg/source/empty_reporter.go | Updates log import. |
| internal/pkg/source/source.go | Updates models import. |
| internal/pkg/source/hq/consumer.go | Updates HQ consumer imports. |
| internal/pkg/source/hq/finisher.go | Updates HQ finisher imports. |
| internal/pkg/source/hq/hq.go | Updates HQ source imports. |
| internal/pkg/source/hq/producer.go | Updates HQ producer imports. |
| internal/pkg/source/hq/seencheck.go | Updates models import. |
| internal/pkg/source/hq/websocket.go | Updates HQ websocket imports. |
| internal/pkg/source/lq/client.go | Updates LQ client imports. |
| internal/pkg/source/lq/consumer.go | Updates LQ consumer imports. |
| internal/pkg/source/lq/finisher.go | Updates LQ finisher imports. |
| internal/pkg/source/lq/lq.go | Updates LQ imports. |
| internal/pkg/source/lq/producer.go | Updates LQ producer imports. |
| internal/pkg/stats/methods.go | Updates config import. |
| internal/pkg/stats/prometheus.go | Updates config import. |
| internal/pkg/stats/stats.go | Updates stats dependency imports. |
| internal/pkg/ui/menu.go | Updates UI menu imports. |
| internal/pkg/ui/pause.go | Updates pause import. |
| internal/pkg/ui/stats.go | Updates stats import. |
| internal/pkg/ui/ui.go | Updates UI imports. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #602 +/- ##
==========================================
+ Coverage 56.37% 56.50% +0.13%
==========================================
Files 133 133
Lines 6760 6760
==========================================
+ Hits 3811 3820 +9
+ Misses 2569 2563 -6
+ Partials 380 377 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
willmhowes
approved these changes
Jun 2, 2026
AltayAkkus
added a commit
to AltayAkkus/Zeno
that referenced
this pull request
Jun 10, 2026
Same thing as internetarchive#602 but for the refactored asset extractors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Zeno only shows to v1.0.85, Go lang expects major versions of packages to be versioned in the import path for semantic version reasons. Unfortunately for us, v1.0.85 is rather old, and I would much rather prefer v2 start showing up there.