luciorq / condathis

Run any CLI tool on a Reproducible Isolated Environment ⚙️⚡
https://github.com/luciorq/condathis
Other
3 stars 1 forks source link

run error micromamba fail #3

Closed c1au6i0 closed 1 year ago

c1au6i0 commented 1 year ago

With version 0.0.2.9003, error launching run:

condathis::create_env("gsutil", env_name = "gsutil-env", method = "native")
#> Running /Users/heverz/.local/share/condathis/micromamba/bin/micromamba create \
#>   -r /Users/heverz/.local/share/condathis -c bioconda -c conda-forge -c \
#>   defaults -n gsutil-env --yes --quiet gsutil
condathis::run("gsutil", "--help", env_name = "gsutil-env")
#> Usage: gsutil [-D] [-DD] [-h header]... [-i service_account] [-m] [-o section:flag=value]... [-q] [-u user_project] [command [opts...] args...]
#> Available commands:
#>   acl              Get, set, or change bucket and/or object ACLs
#>   autoclass        Configure Autoclass feature
#>   bucketpolicyonly Configure uniform bucket-level access
#>   cat              Concatenate object content to stdout
#>   compose          Concatenate a sequence of objects into a new composite object.
#>   config           Obtain credentials and create configuration file
#>   cors             Get or set a CORS configuration for one or more buckets
#>   cp               Copy files and objects
#>   defacl           Get, set, or change default ACL on buckets
#>   defstorageclass  Get or set the default storage class on buckets
#>   du               Display object size usage
#>   hash             Calculate file hashes
#>   help             Get help about commands and topics
#>   hmac             CRUD operations on service account HMAC keys.
#>   iam              Get, set, or change bucket and/or object IAM permissions.
#>   kms              Configure Cloud KMS encryption
#>   label            Get, set, or change the label configuration of a bucket.
#>   lifecycle        Get or set lifecycle configuration for a bucket
#>   logging          Configure or retrieve logging on buckets
#>   ls               List providers, buckets, or objects
#>   mb               Make buckets
#>   mv               Move/rename objects
#>   notification     Configure object change notification
#>   pap              Configure public access prevention
#>   perfdiag         Run performance diagnostic
#>   rb               Remove buckets
#>   requesterpays    Enable or disable requester pays for one or more buckets
#>   retention        Provides utilities to interact with Retention Policy feature.
#>   rewrite          Rewrite objects
#>   rm               Remove objects
#>   rpo              Configure replication
#>   rsync            Synchronize content of two buckets/directories
#>   setmeta          Set metadata on already uploaded objects
#>   signurl          Create a signed URL
#>   stat             Display object status
#>   test             Run gsutil unit/integration tests (for developers)
#>   ubla             Configure Uniform bucket-level access
#>   version          Print version info about gsutil
#>   versioning       Enable or suspend versioning for one or more buckets
#>   web              Set a website configuration for a bucket
#> 
#> Additional help topics:
#>   acls             Working With Access Control Lists
#>   crc32c           CRC32C and Installing crcmod
#>   creds            Credential Types Supporting Various Use Cases
#>   dev              Contributing Code to gsutil
#>   encoding         Filename encoding and interoperability problems
#>   metadata         Working With Object Metadata
#>   naming           Object and Bucket Naming
#>   options          Global Command Line Options
#>   prod             Scripting Production Transfers
#>   security         Security and Privacy Considerations
#>   shim             Shim for Running gcloud storage
#>   support          Google Cloud Storage Support
#>   versions         Object Versioning and Concurrency Control
#> 
#> Use gsutil help <command or topic> for detailed help.
#> Error in c("processx::run(command = fs::path_real(umamba_bin_path), args = c(\"run\", ", : ! System command 'micromamba' failed
c1au6i0 commented 1 year ago

My bad gsutil --help open the manual so I supposed this is expected

luciorq commented 1 year ago

It is not just about opening the manual in interactive mode, but the command truly returns an error (exit code 1) when you call gsutil --help. For this specific case, gsutil --version should be a more stable command to test functionality.