{"id":17623684,"url":"https://github.com/zachgrayio/flare-pants-example","last_synced_at":"2025-08-25T19:08:31.022Z","repository":{"id":46143756,"uuid":"515115735","full_name":"zachgrayio/flare-pants-example","owner":"zachgrayio","description":null,"archived":false,"fork":false,"pushed_at":"2022-07-18T09:53:13.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-31T02:11:21.404Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zachgrayio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-18T09:24:38.000Z","updated_at":"2022-07-18T09:24:43.000Z","dependencies_parsed_at":"2022-09-01T19:03:05.296Z","dependency_job_id":null,"html_url":"https://github.com/zachgrayio/flare-pants-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"pantsbuild/example-golang","purl":"pkg:github/zachgrayio/flare-pants-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachgrayio%2Fflare-pants-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachgrayio%2Fflare-pants-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachgrayio%2Fflare-pants-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachgrayio%2Fflare-pants-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zachgrayio","download_url":"https://codeload.github.com/zachgrayio/flare-pants-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachgrayio%2Fflare-pants-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272117170,"owners_count":24876337,"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","status":"online","status_checked_at":"2025-08-25T02:00:12.092Z","response_time":1107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-22T21:23:30.282Z","updated_at":"2025-08-25T19:08:30.997Z","avatar_url":"https://github.com/zachgrayio.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# example-golang\n\nAn example repository to demonstrate Pants's experimental Golang support.\n\nSee the [Golang blog post](https://blog.pantsbuild.org/golang-support-pants-28/) for some unique\nbenefits Pants brings to Golang repositories, and see\n[pantsbuild.org/docs/go-overview](https://www.pantsbuild.org/v2.8/docs/go-overview) for more detailed\ndocumentation.\n\nThis is only one possible way of laying out your project with Pants. See \n[pantsbuild.org/docs/source-roots#examples](https://www.pantsbuild.org/docs/source-roots#examples) \nfor some other example layouts.\n\nNote: for now, Pants only supports repositories using a single `go.mod`. Please comment on \n[#13114](https://github.com/pantsbuild/pants/issues/13114) if you need support for greater \nthan one `go.mod` so that we can prioritize adding support.\n\n# Running Pants\n\nYou run Pants goals using the `./pants` wrapper script, which will bootstrap the\nconfigured version of Pants if necessary.\n\n# Goals\n\nPants commands are called _goals_. You can get a list of goals with\n\n```\n./pants help goals\n```\n\nMost goals take arguments to run on. To run on a single directory, use the directory name with \n`:` at the end. To recursively run on a directory and all its subdirectories, add `::` to the \nend.\n\nFor example:\n\n```\n./pants lint cmd: internal::\n```\n\nYou can run on all changed files:\n\n```\n./pants --changed-since=HEAD lint\n```\n\nYou can run on all changed files, and any of their \"dependees\":\n\n```\n./pants --changed-since=HEAD --changed-dependees=transitive test\n```\n\n# Example Goals\n\nTry these out in this repo!\n\n## Run Gofmt\n\n```\n./pants fmt ::  # Format all packages.\n./pants fmt cmd/greeter_en:  # Format only this package.\n./pants lint pkg::  # Check that all packages under `pkg` are formatted.\n```\n\n## Check compilation\n\n```\n./pants check ::  # Compile all packages.\n./pants check cmd/greeter_en:  # Compile only this package and its transitive dependencies.\n```\n\n## Run tests\n\n```\n./pants test ::  # Run all tests in the repository.\n./pants test pkg/uuid:  # Run all the tests in this package.\n./pants test pkg/uuid: -- -run TestGenerateUuid  # Run just this one test.\n```\n\n## Create a binary file\n\nWrites the result to the `dist/` folder.\n\n```\n./pants package cmd/greeter_en:\n./pants package cmd::  # Create all binaries.\n```\n\n## Run a binary\n\n```\n./pants run cmd/greeter_en:\n./pants run cmd/greeter_es: -- --help\n```\n\n## Determine dependencies\n\n```\n./pants dependencies cmd/greeter_en:\n./pants dependencies --transitive cmd/greeter_en:\n```\n\n## Determine dependees\n\nThat is, find what code depends on a particular package(s).\n\n```\n./pants dependees pkg/uuid:\n./pants dependees --transitive pkg/uuid: \n```\n\n## Count lines of code\n\n```\n./pants count-loc '**/*'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachgrayio%2Fflare-pants-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzachgrayio%2Fflare-pants-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachgrayio%2Fflare-pants-example/lists"}