Opened 3 years ago

Closed 3 years ago

#63602 closed defect (fixed)

ruby: ports do not give note on using port select

Reported by: LenoreHorner Owned by: kimuraw (kimura wataru)
Priority: Normal Milestone:
Component: ports Version:
Keywords: ruby ruby30 port select Cc:
Port: ruby30

Description

Python and other ports give a useful note at the end.

python38 has the following notes:
    To make this the default Python or Python 3 (i.e., the version run by the
    'python' or 'python3' commands), run one or both of:
    
        sudo port select --set python python38
        sudo port select --set python3 python38

However, ruby30 (the only one I've checked) does not give similar help. Why not? The same syntax works:

sudo port select --set ruby ruby30

.

port notes ruby30
--->  ruby30 has no notes.

Change History (3)

comment:1 Changed 3 years ago by jmroot (Joshua Root)

Owner: set to kimuraw
Status: newassigned

comment:2 Changed 3 years ago by mascguy (Christopher Nielsen)

Summary: ruby 30 does not give note on using port selectruby: ports do not give note on using port select

It looks like none of our Ruby ports call this out via port notes, so we should plan to update all.

comment:3 Changed 3 years ago by kimura wataru <kimuraw@…>

Resolution: fixed
Status: assignedclosed

In cabc46e29d785de417b2cdc7f312b7e2ade787b9/macports-ports (master):

lang/ruby30, ruby27, .. ruby19, ruby: introduce notes about 'port select'

closes: #63602

$ sudo port install ruby30
--->  Computing dependencies for ruby30
   :
--->  Some of the ports you installed have notes:
  ruby30 has the following notes:
    To make this the default Ruby (i.e., the version run by the 'ruby', 'gem' or 'bundle' commands),
    run:
        sudo port select --set ruby ruby30
$

$ port notes ruby30
--->  ruby30 has the following notes:
  To make this the default Ruby (i.e., the version run by the 'ruby', 'gem' or 'bundle' commands),
  run:
      sudo port select --set ruby ruby30
$
Note: See TracTickets for help on using tickets.