Title: Make installation/deployment easier on non-Ubuntu Linux environments · Issue #4191 · purescript/purescript · GitHub
Open Graph Title: Make installation/deployment easier on non-Ubuntu Linux environments · Issue #4191 · purescript/purescript
X Title: Make installation/deployment easier on non-Ubuntu Linux environments · Issue #4191 · purescript/purescript
Description: Summary Stack's support for non-Ubuntu systems is not good enough to build on a few common environments like AWS Linux. One potential solution is to use cabal for builds instead. Motivation Selfishly, at Meeshkan, we can no longer build ...
Open Graph Description: Summary Stack's support for non-Ubuntu systems is not good enough to build on a few common environments like AWS Linux. One potential solution is to use cabal for builds instead. Motivation Selfish...
X Description: Summary Stack's support for non-Ubuntu systems is not good enough to build on a few common environments like AWS Linux. One potential solution is to use cabal for builds instead. Motivation Sel...
Opengraph URL: https://github.com/purescript/purescript/issues/4191
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Make installation/deployment easier on non-Ubuntu Linux environments","articleBody":"## Summary\r\n\r\nStack's support for non-Ubuntu systems is not good enough to build on a few common environments like AWS Linux. One potential solution is to use `cabal` for builds instead.\r\n\r\n## Motivation\r\n\r\nSelfishly, at Meeshkan, we can no longer build on CI because we switched to Vercel, which runs on AWS Linux. But I do believe that this is indicative of a potential friction point elsewhere - we ran into this as well, for example, when trying to deploy PureScript and Spago to AWS Lambda.\r\n\r\n## Proposal\r\n\r\nSub out cabal for stack wherever we use stack.\r\n\r\n## Examples\r\n\r\nFor example, in this repo, we'd include the following `cabal.project` file or some variant thereof (courtesy of @hdgarrood).\r\n\r\n```cabal\r\npackages:\r\n purescript.cabal\r\n lib/purescript-cst/purescript-cst.cabal\r\n\r\n-- Print test output to the terminal immediately rather than waiting for the\r\n-- test suite to finish running.\r\n-- as this no longer works when using cabal new-build, we comment it out\r\n-- test-show-details: streaming\r\n\r\n-- Disable optimization by default when building as a local package (i.e.\r\n-- during development).\r\noptimization: False\r\n\r\npackage aeson-pretty\r\n -- avoid installing the aeson-pretty CLI tool, since we only want the library\r\n flags: +lib-only\r\n\r\npackage these\r\n -- switch these flags off to avoid dependencies we don't need\r\n flags: -assoc -quickcheck\r\n```\r\n\r\nThe result of `cabal new-build` is:\r\n\r\n```\r\nLinking /home/meeshkan-abel/mike/purescript/dist-newstyle/build/x86_64-linux/ghc-8.10.7/purescript-0.14.5/x/purs/noopt/build/purs/purs ...\r\n```\r\n\r\nSo that seems to be the `purs` binary that'd then be the artifact. We'd do a similar-ish thing for trypurescript and spago.\r\n\r\n# Conclusion\r\n\r\nOne of PureScript's best features IMO is its ease of deployment and use in industrial production environments. In light of this & all the available info, dropping `stack` and using `cabal` seems like a good call.","author":{"url":"https://github.com/mikesol","@type":"Person","name":"mikesol"},"datePublished":"2021-10-26T10:25:09Z","url":"https://github.com/purescript/purescript/issues/4191"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:56824526-14bb-4e71-5217-5ef0ce5aa5a1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 873A:337AE8:35D951:47D3AA:6AFBBBCA |
| html-safe-nonce | 9541b41ed89e50f094950c2c81bb95786492ea2167ef666929bfaa1b66474ec8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NzNBOjMzN0FFODozNUQ5NTE6NDdEM0FBOjZBRkJCQkNBIiwidmlzaXRvcl9pZCI6IjM0NTkzOTE5NDE2MTc4OTIyOTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | fd67f0e5ddcb3b13e02687546f20333cc19a3c02c5d06e33cc14646531e76484 |
| hovercard-subject-tag | issue:1036114186 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/purescript/purescript/4191/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4323e514033edefaf9924e3cae9a76c6d6c4dd1a751629a80cd9006efb13d7db/purescript/purescript/issues/4191 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4323e514033edefaf9924e3cae9a76c6d6c4dd1a751629a80cd9006efb13d7db/purescript/purescript/issues/4191 |
| og:image:alt | Summary Stack's support for non-Ubuntu systems is not good enough to build on a few common environments like AWS Linux. One potential solution is to use cabal for builds instead. Motivation Selfish... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mikesol |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2b2ef9c1578c18d8ed27027940544c958743213cf4461659f14d3ccdf51e162c |
| turbo-cache-control | no-preview |
| go-import | github.com/purescript/purescript git https://github.com/purescript/purescript.git |
| octolytics-dimension-user_id | 6556677 |
| octolytics-dimension-user_login | purescript |
| octolytics-dimension-repository_id | 13206906 |
| octolytics-dimension-repository_nwo | purescript/purescript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 13206906 |
| octolytics-dimension-repository_network_root_nwo | purescript/purescript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e4cce0e99cf61481a318ff12c2e8580153a6c7c6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width