{"id":17948844,"url":"https://github.com/meomix/trunk_broken_example","last_synced_at":"2026-01-18T16:31:45.559Z","repository":{"id":212579148,"uuid":"731836029","full_name":"MeoMix/trunk_broken_example","owner":"MeoMix","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-15T02:16:20.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T02:36:40.044Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","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/MeoMix.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,"roadmap":null,"authors":null}},"created_at":"2023-12-15T01:58:06.000Z","updated_at":"2023-12-15T02:10:44.000Z","dependencies_parsed_at":"2023-12-15T04:04:46.615Z","dependency_job_id":null,"html_url":"https://github.com/MeoMix/trunk_broken_example","commit_stats":null,"previous_names":["meomix/trunk_broken_example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeoMix%2Ftrunk_broken_example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeoMix%2Ftrunk_broken_example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeoMix%2Ftrunk_broken_example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeoMix%2Ftrunk_broken_example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MeoMix","download_url":"https://codeload.github.com/MeoMix/trunk_broken_example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247026510,"owners_count":20871387,"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-29T09:10:19.950Z","updated_at":"2026-01-18T16:31:45.519Z","avatar_url":"https://github.com/MeoMix.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"This repo demos a minimal example of Trunk v0.18.0 broken functionality.\n\nSimplest way to run it is through Docker, but a basic Rust development environment should work fine if Docker is unavailable.\n\nThen, execute command: `trunk build`. Observe output error: \n\n```\nroot@c1898230ae93:/workspaces/trunk_broken_example# trunk build\n2023-12-15T02:10:06.460768Z  INFO 🚀 Starting trunk 0.18.0\n2023-12-15T02:10:06.460893Z  INFO 📦 starting build\n2023-12-15T02:10:06.461730Z  INFO spawning asset pipelines\n2023-12-15T02:10:06.533711Z  INFO building example_pkg\n   Compiling example_pkg v0.1.0 (/workspaces/trunk_broken_example)\n    Finished dev [unoptimized + debuginfo] target(s) in 0.14s\n2023-12-15T02:10:06.720671Z  INFO fetching cargo artifacts\n2023-12-15T02:10:06.769479Z ERROR ❌ error\nerror from build pipeline\n\nCaused by:\n    0: error from asset pipeline\n    1: found more than one binary crate: [\"example_lib\", \"example_pkg\"], consider adding `\u003clink data-trunk rel=\"rust\" data-bin={bin} /\u003e` to the index.html\nError: error from build pipeline\n\nCaused by:\n    0: error from asset pipeline\n    1: found more than one binary crate: [\"example_lib\", \"example_pkg\"], consider adding `\u003clink data-trunk rel=\"rust\" data-bin={bin} /\u003e` to the index.html\n```\n\nConfirm that `index.html` contains:\n\n```\n\u003chtml\u003e\n    \u003chead\u003e\n        \u003clink data-trunk rel=\"rust\" data-bin=\"example_pkg\" /\u003e\n    \u003c/head\u003e\n\u003c/html\u003e\n```\n\nYou may then edit `data-bin` to an invalid value, i.e. `data-bin=\"example\"`, and observe that invalid value is detected by Trunk. So, the configuraiton is being read, but is insufficient to eliminate error.\n\nPrior to this, in v0.17.x, `cdylib` was not a supported target and so no bin configuration was required.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeomix%2Ftrunk_broken_example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeomix%2Ftrunk_broken_example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeomix%2Ftrunk_broken_example/lists"}