You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Brad Schoening (Jira)" <ji...@apache.org> on 2022/06/07 01:07:00 UTC

[jira] [Updated] (CASSANDRA-17684) Add MacOS path /usr/local/share/doc/cassandra path for cqlsh docs

     [ https://issues.apache.org/jira/browse/CASSANDRA-17684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brad Schoening updated CASSANDRA-17684:
---------------------------------------
    Description: 
On MacOS, /usr/share is not writable – even by root. Instead, /usr/local/share is the preferred location.

The current share directory path is /usr/local/share/doc/cassandra/CQL.html.

Using a list comprehension would simplify the current code.  E.g.,     
{quote}HTML_FALLBACK = 'https://cassandra.apache.org/doc/latest/cql/index.html'

loc = ( 'file://./doc/cql3/CQL.html', 'file:///usr/share/doc/cassandra/CQL.html', 'file:///usr/local/share/doc/cassandra/CQL.html' )

item = next((x for x in a if os.path.exists(x)), HTML_FALLBACK)
{quote}

  was:
On MacOS, /usr/share is not writable – even by root. Instead, /usr/local/share is the preferred location.

The current share directory path is /usr/local/share/doc/cassandra/CQL.html.

Using a a list comprehension would simplify the current code.  E.g.,     
{quote}HTML_FALLBACK = 'https://cassandra.apache.org/doc/latest/cql/index.html'

loc = ( 'file://./doc/cql3/CQL.html', 'file:///usr/share/doc/cassandra/CQL.html', 'file:///usr/local/share/doc/cassandra/CQL.html' )

item = next((x for x in a if os.path.exists(x)), HTML_FALLBACK)
{quote}


> Add MacOS path /usr/local/share/doc/cassandra path for cqlsh docs
> -----------------------------------------------------------------
>
>                 Key: CASSANDRA-17684
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-17684
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Brad Schoening
>            Assignee: Brad Schoening
>            Priority: Normal
>
> On MacOS, /usr/share is not writable – even by root. Instead, /usr/local/share is the preferred location.
> The current share directory path is /usr/local/share/doc/cassandra/CQL.html.
> Using a list comprehension would simplify the current code.  E.g.,     
> {quote}HTML_FALLBACK = 'https://cassandra.apache.org/doc/latest/cql/index.html'
> loc = ( 'file://./doc/cql3/CQL.html', 'file:///usr/share/doc/cassandra/CQL.html', 'file:///usr/local/share/doc/cassandra/CQL.html' )
> item = next((x for x in a if os.path.exists(x)), HTML_FALLBACK)
> {quote}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org