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

check for new phx.new version #6012

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

SteffenDE
Copy link
Contributor

@SteffenDE SteffenDE commented Dec 11, 2024

Adds a warning message at the end of the phx.new output if a newer version of the installer is available:

image

@SteffenDE SteffenDE force-pushed the sd-phx-new-version-check branch from fff7a5e to b4c0066 Compare December 11, 2024 16:06
@SteffenDE
Copy link
Contributor Author

Should we do something about the warnings on Erlang < 25?

.[hex_http_httpc] using default ssl options which are insecure.
Configure your adapter with: {hex_http_httpc, #{http_options => [{ssl, SslOpts}]}}
or upgrade Erlang/OTP to OTP-25 or later.
.[hex_http_httpc] using default ssl options which are insecure.
Configure your adapter with: {hex_http_httpc, #{http_options => [{ssl, SslOpts}]}}
or upgrade Erlang/OTP to OTP-25 or later.
..[hex_http_httpc] using default ssl options which are insecure.
Configure your adapter with: {hex_http_httpc, #{http_options => [{ssl, SslOpts}]}}
or upgrade Erlang/OTP to OTP-25 or later.
[hex_http_httpc] using default ssl options which are insecure.
Configure your adapter with: {hex_http_httpc, #{http_options => [{ssl, SslOpts}]}}
or upgrade Erlang/OTP to OTP-25 or later.
[hex_http_httpc] using default ssl options which are insecure.
Configure your adapter with: {hex_http_httpc, #{http_options => [{ssl, SslOpts}]}}
or upgrade Erlang/OTP to OTP-25 or later.
[hex_http_httpc] using default ssl options which are insecure.
Configure your adapter with: {hex_http_httpc, #{http_options => [{ssl, SslOpts}]}}
or upgrade Erlang/OTP to OTP-25 or later.
[hex_http_httpc] using default ssl options which are insecure.
Configure your adapter with: {hex_http_httpc, #{http_options => [{ssl, SslOpts}]}}
or upgrade Erlang/OTP to OTP-25 or later.
[hex_http_httpc] using default ssl options which are insecure.
Configure your adapter with: {hex_http_httpc, #{http_options => [{ssl, SslOpts}]}}
or upgrade Erlang/OTP to OTP-25 or later.
[hex_http_httpc] using default ssl options which are insecure.
Configure your adapter with: {hex_http_httpc, #{http_options => [{ssl, SslOpts}]}}
or upgrade Erlang/OTP to OTP-25 or later.

@SteffenDE SteffenDE marked this pull request as ready for review December 11, 2024 17:27
@SteffenDE SteffenDE requested a review from josevalim January 26, 2025 12:28
@SteffenDE SteffenDE force-pushed the sd-phx-new-version-check branch from f110ff0 to cc1223b Compare January 26, 2025 12:35
@@ -61,6 +61,7 @@ defmodule Phx.New.MixProject do

def deps do
[
{:hex_core, "~> 0.11.0"},
Copy link
Member

Choose a reason for hiding this comment

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

Archives cannot include dependencies afaik :(

We will need to request against Hex API.

@josevalim
Copy link
Member

@SteffenDE should we check before we do anything, to make sure they are generating an app in the latest version?

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