Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Avi Press
    @aviaviavi

    hey @njones - I've added some fixes to the scarf CLI so it properly installs pbr as pbr and not your package name. if you run scarf upgrade, rm ~/.scarf/scarf-package.json, scarf install 'PBR - PEM Block Reader' you should be in good shape!

    however, i think it still would be better if the package name was pbr so people can install it with scarf install pbr. Would you mind if I change that in the DB for you? This is not really an operation I want to have in the UI since this operation would generally break packages

    Nika Jones
    @njones
    Sure you can change the name for me. I'll try installing the package tonight.
    Avi Press
    @aviaviavi
    Awesome
    Avi Press
    @aviaviavi
    Done :)
    scarf install pbris working as expected for me now
    Nika Jones
    @njones
    If I push a release with a new package specification... do I run scarf install pbr again on the target machine to get the new release?
    Avi Press
    @aviaviavi
    yeah, install currently upgrades the package to latest version
    that will probably change later
    Avi Press
    @aviaviavi
    I pushed out payments features to the backend so things are also a little bit in flux
    Fahmi Akbar Wildana
    @DrSensor
    Hi, does a CLI published to scarf support multiple distributions? (Windows, Mac, Linux)
    Also, does scarf itself support running on Windows?
    Avi Press
    @aviaviavi
    Hi @DrSensor! Scarf doesn't run on windows yet, but will in the future if there is desire for it.
    Scarf does support publishing to both linux and mac however
    on https://docs.scarf.sh, you can see an example package specification which publishes a package to both platforms
    I'd be more than happy to help you get a your package set up on Scarf! How is your CLI tool built?
    Fahmi Akbar Wildana
    @DrSensor
    It's cross-compiled to Windows, Linux, and Mac (thanks to the advancement in CI
    services, now waiting for ARM support). However, I've difficulty to distribute it in various OS distro.
    There is a project for installing directly via github-release https://github.com/crate-ci/gh-install
    However, that's doesn't solve installing pre-defined dependencies.
    (My CLI have a mechanism to use another CLI for extra feature)
    Avi Press
    @aviaviavi
    Got it. Well scarf can definitely help with the installation of your CLI and it's dependencies. The only thing is that your dependencies on are almost certainly not on Scarf yet, but i'll do everything i can to get them up!
    If your project is public I can take a look for you @DrSensor!
    If not, what packages do you depend on?
    Fahmi Akbar Wildana
    @DrSensor
    @aviaviavi sure, you can check it in using Docker or CLI usage section
    https://github.com/DrSensor/scdlang/blob/master/README.md#using-docker
    Fahmi Akbar Wildana
    @DrSensor
    Ah yes, does the scarf user get notified when there is a new update on the packages they installed?
    Avi Press
    @aviaviavi
    Great thank you I will take a look
    The user is not currently notified of updates yet, but that is a planned feature
    Avi Press
    @aviaviavi
    I'm curious here, how would you ideally like the new version notifications to behave? Would you want to show the user a warning every time scdlang is invoked? Just some of the time? In specific circumstances?
    Fahmi Akbar Wildana
    @DrSensor
    I prefer for a user to have full control over that. Maybe add a prompt on the first execution to ask how they would like to be notified 🤔
    Avi Press
    @aviaviavi
    Cool that makes sense, thanks for the input :) I've added this to Scarf's feature plans
    Avi Press
    @aviaviavi
    Regarding your package - some of your dependencies require me to add some new functionality to Scarf's installation internals so Scarf handles them properly. This will take a little bit of time to implement, but I will be sure to let you know when it's ready! In the meantime I'm trying to see if I can get your package working with Scarf in a way that skips dependency installation for now
    Avi Press
    @aviaviavi
    @DrSensor ok so I made a template package spec for you if you'd like to try using Scarf. You can log into scarf, create a new package called scdlang, and then grab the spec here: https://github.com/scarf-sh/scarfpkgs/blob/master/scdlang/scdlang.yaml
    Fill in your information in the blank <> I left
    Also, you'll want to be on the latest version of the scarf cli (>0.6.3), so make sure you are on the newest version with scarf upgrade
    still looking into getting your dependencies on Scarf too, but in the meantime you can release a version without them if you'd like
    Avi Press
    @aviaviavi
    Hi @DrSensor! I've been working on some changes to scarf to that should enable you to distribute scdlang now! Your dependencies will now get installed properly when a user tries to install scdlang. I wrote up a package file for you here https://github.com/scarf-sh/scarfpkgs/blob/master/scdlang/scdlang.yaml. Care to try out uploading and running your package? I'm happy to help walk you through it.