{"id":13994398,"url":"https://github.com/cloudfoundry-community/swift-buildpack","last_synced_at":"2025-10-13T13:47:44.829Z","repository":{"id":66275032,"uuid":"47567172","full_name":"cloudfoundry-community/swift-buildpack","owner":"cloudfoundry-community","description":null,"archived":false,"fork":false,"pushed_at":"2017-03-22T00:14:45.000Z","size":66,"stargazers_count":26,"open_issues_count":1,"forks_count":205,"subscribers_count":36,"default_branch":"master","last_synced_at":"2024-11-29T16:39:18.555Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"kylef/heroku-buildpack-swift","license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudfoundry-community.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-12-07T17:12:52.000Z","updated_at":"2024-04-24T11:16:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"4e39573a-ed9e-4717-ab2a-9b013e419cf8","html_url":"https://github.com/cloudfoundry-community/swift-buildpack","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/cloudfoundry-community/swift-buildpack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry-community%2Fswift-buildpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry-community%2Fswift-buildpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry-community%2Fswift-buildpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry-community%2Fswift-buildpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudfoundry-community","download_url":"https://codeload.github.com/cloudfoundry-community/swift-buildpack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry-community%2Fswift-buildpack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279015339,"owners_count":26085685,"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-10-13T02:00:06.723Z","response_time":61,"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-08-09T14:02:51.142Z","updated_at":"2025-10-13T13:47:44.822Z","avatar_url":"https://github.com/cloudfoundry-community.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"Apple Swift buildpack for Cloud Foundry\n=======================================\n\nThis is a Cloud Foundry/Heroku buildpack for Swift app, powered by SwiftPM (Swift Package Manager). It can be used on any Cloud Foundry, and administrators can upload an online (fetch assets from Internet) or offline (is bundled with buildpack assets) variation.\n\nCheck out a [helloworld](https://github.com/kylef/Curassow-example-helloworld) for a fully working example that can be deployed to any Cloud Foundry.\n\nUsage\n-----\n\nExample usage:\n\n```shell\n$ ls\nProcfile Project.swift Sources\n\n$ cf push -b https://github.com/cloudfoundry-community/swift-buildpack.git\n-----\u003e Downloaded app package (4.0K)\n-----\u003e Downloaded app buildpack cache (171M)\n-----\u003e Buildpack version 1.0.0\n-----\u003e Installing Swift 2.2-SNAPSHOT-2016-01-11-a\n       Downloaded Swift\n-----\u003e Installing Clang 3.7.0\n       Downloaded Clang\n-----\u003e Building Package\n       Cloning Packages/Curassow\n       Cloning Packages/Nest\n       Cloning Packages/Inquiline\n       Cloning Packages/Commander\n       Compiling Swift Module 'Nest' (1 sources)\n       Linking Library:  .build/release/Nest.a\n       Compiling Swift Module 'Inquiline' (3 sources)\n       Linking Library:  .build/release/Inquiline.a\n       Compiling Swift Module 'Commander' (8 sources)\n       Linking Library:  .build/release/Commander.a\n       Compiling Swift Module 'Curassow' (7 sources)\n       Linking Library:  .build/release/Curassow.a\n       Compiling Swift Module 'HelloWorld' (1 sources)\n       Linking Executable:  .build/release/HelloWorld\n-----\u003e Copying dynamic libraries\n-----\u003e Copying binaries to 'bin'\n```\n\nThe buildpack will detect your app as Swift if it has a `Package.swift` file in the root.\n\n### Procfile\n\nUsing the `Procfile`, you can set the process to run for your web server. Any binaries built from your Swift source using SwiftPM will be placed in your $PATH.\n\n```swift\nweb: HelloWorld --workers 3 --bind 0.0.0.0:$PORT\n```\n\n### Specify a Swift version\n\nYou can also customise the version of Swift used with a `.swift-version` file in your repository:\n\n```shell\n$ cat .swift-version\n2.2-SNAPSHOT-2016-01-11-a\n```\n\nSee [manifest.yml](https://github.com/cloudfoundry-community/swift-buildpack/blob/master/manifest.yml#L14) for supported versions.\n\n**NOTE**: *Since there are frequent Swift language changes, it's advised that you pin to your Swift version.*\n\n### Debugging\n\nIf the buildpack preparation or compilation steps are failing then you can enable some debugging:\n\n```\ncf set-env \u003cappname\u003e BP_DEBUG 1\n```\n\nTo deactivate:\n\n```\ncf unset-env \u003cappname\u003e BP_DEBUG\n```\n\nAdmin installation\n------------------\n\n```\nwget https://github.com/cloudfoundry-community/swift-buildpack/releases/download/v1.0.0/swift_buildpack-cached-v1.0.0.zip\ncf create-buildpack swift_buildpack swift_buildpack*.zip 10\n```\n\nOr to update:\n\n```\nwget https://github.com/cloudfoundry-community/swift-buildpack/releases/download/v1.0.0/swift_buildpack-cached-v1.0.0.zip\ncf update-buildpack swift_buildpack -p swift_buildpack*.zip\n```\n\nPackaging\n---------\n\nThe two buildpack zip files are built from two different `manifest.yml` files:\n\n```\nBUNDLE_GEMFILE=cf.Gemfile bundle install\nBUNDLE_GEMFILE=cf.Gemfile bundle exec buildpack-packager --uncached --use-custom-manifest manifest.yml\nBUNDLE_GEMFILE=cf.Gemfile bundle exec buildpack-packager --cached --use-custom-manifest manifest-cached.yml\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudfoundry-community%2Fswift-buildpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudfoundry-community%2Fswift-buildpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudfoundry-community%2Fswift-buildpack/lists"}