{"id":17033004,"url":"https://github.com/gbbr/uselocal","last_synced_at":"2026-04-15T22:36:22.550Z","repository":{"id":188230010,"uuid":"657063023","full_name":"gbbr/uselocal","owner":"gbbr","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-21T09:36:42.000Z","size":10,"stargazers_count":0,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-28T01:14:58.652Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gbbr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-06-22T08:32:08.000Z","updated_at":"2023-06-22T14:34:38.000Z","dependencies_parsed_at":"2023-08-18T01:38:03.964Z","dependency_job_id":null,"html_url":"https://github.com/gbbr/uselocal","commit_stats":null,"previous_names":["gbbr/uselocal"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbbr%2Fuselocal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbbr%2Fuselocal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbbr%2Fuselocal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbbr%2Fuselocal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gbbr","download_url":"https://codeload.github.com/gbbr/uselocal/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245020854,"owners_count":20548254,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T08:31:38.384Z","updated_at":"2026-04-15T22:36:17.528Z","avatar_url":"https://github.com/gbbr.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# uselocal\n\nThe `uselocal` tool helps you switch between development and production environments for module (and sub-module) repositories by programmatically applying and undoing replace directives.\n\n## Usage\n\nThe configuration file is located by default in the current folder where the command is run under the name `.uselocal.yaml`, but can be placed anywhere and set via the `USELOCAL` variable.\n\nAn example configuration file would be:\n```yaml\ntargets:\n  - ./cmd/otelcontribcol\n  - ./exporter/datadogexporter\n  - ./processor/datadogprocessor\n  - .\nreplace:\n  - from: github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/metrics\n    to: ../../DataDog/opentelemetry-mapping-go/pkg/otlp/metrics\n  - from: github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes\n    to: ../../DataDog/opentelemetry-mapping-go/pkg/otlp/attributes\n  - from: github.com/DataDog/datadog-agent/pkg/trace\n    to: ../../DataDog/datadog-agent/pkg/trace\n```\n\nThis file specifies that for the `go.mod` files in the subfolders specified in `targets`, the list of replace directives is applied.\n\nTo apply the changes, run `uselocal`. To undo the changes, run `uselocal --drop`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgbbr%2Fuselocal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgbbr%2Fuselocal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgbbr%2Fuselocal/lists"}