Closed ace-n closed 3 years ago
The latest version (0.7.0) of the Ruby framework provides both functions-framework-ruby
and functions_framework
, but deprecates the latter. (i.e. it works, but prints a warning suggesting that users use functions-framework-ruby
instead.) Additionally, I just finished updating the Ruby GCF buildpack to use functions-framework-ruby
instead of functions-framework
. That's the behavior I'd recommend in general.
@ace-n I think this global functions-framework
binaries only happened to very specific languages, i.e. python and ruby. Thus I don't think other languages need specific aliases.
Do you mind filing an issue to not use the generic functions-framework
name in language-specific repos as you see the issue? I think that will make more progress.
Done (for Python and Node - since the Node FF can be installed globally via npm install -g
)
Most of the Functions Frameworks are invoked using either
functions-framework
orfunctions_framework
terminal commands.This is fine for environments where only one FF is installed, but environments with multiple FFs (i.e. FFs for multiple languages on the same machine, or multiple FF versions for a single language) make it harder to select specific FFs.
For example:
Node.js directory
Ruby FF (...wait, what?)
One possible fix is to add aliases to the existing FF binaries - e.g.
functions-framework-<LANGUAGE>
, and maybefunctions-framework-<LANGUAGE>-<VERSION>
. (N.B: I suspect the former is more common than the latter.)Note: This is an addition - so
functions-framework
would still work, but may point to an arbitrary FF binary if run on a machine with multiple FFs installed.