Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add basic erlang detection via rebar #5886

Merged
merged 2 commits into from
Oct 17, 2024
Merged

Conversation

mrstork
Copy link
Contributor

@mrstork mrstork commented Oct 16, 2024

🎉 Thanks for submitting a pull request! 🎉

Summary

Rebar is a very common Erlang build tool (see: https://github.com/erlang/rebar3)
Using the rebar config files to detect some erlang usage in Netlify


For us to review and ship your PR efficiently, please perform the following steps:

  • Open a bug/issue before writing your code 🧑‍💻. This ensures
    we can discuss the changes and get feedback from everyone that should be involved. If you`re fixing a typo or
    something that`s on fire 🔥 (e.g. incident related), you can skip this step.
  • Read the contribution guidelines 📖. This ensures
    your code follows our style guide and passes our tests.
  • Update or add tests (if any source code was changed or added) 🧪
  • Update or add documentation (if features were changed or added) 📝
  • Make sure the status checks below are successful ✅

A picture of a cute animal (not mandatory, but encouraged)

packages/build-info/src/runtime/erlang.test.ts Outdated Show resolved Hide resolved
packages/build-info/src/runtime/erlang.test.ts Outdated Show resolved Hide resolved
export class Erlang extends LangRuntime {
id = 'erlang'
name = 'Erlang'
configFiles = ['rebar.config', 'rebar.lock']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My quick research says a nontrivial fraction of Erlang projects won't be using Rebar. As long as that's ok, this seems fine 🤷🏼‍♂️.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I meant for this to serve as a starting point for us. I don't personally know of any other markers to check for, but if you happen to know any, let's add them!

@mrstork mrstork requested a review from serhalp October 16, 2024 13:49
Copy link

sonarcloud bot commented Oct 17, 2024

@mrstork mrstork merged commit 198329a into main Oct 17, 2024
38 of 39 checks passed
@mrstork mrstork deleted the chore/erlang-detection branch October 17, 2024 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants