Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: denisbrodbeck/machineid
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: panta/machineid
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 10 commits
  • 11 files changed
  • 3 contributors

Commits on Dec 30, 2020

  1. Configuration menu
    Copy the full SHA
    e10a1dd View commit details
    Browse the repository at this point in the history
  2. Update .gitignore

    panta committed Dec 30, 2020
    Configuration menu
    Copy the full SHA
    3e922c9 View commit details
    Browse the repository at this point in the history
  3. Add go.mod

    panta committed Dec 30, 2020
    Configuration menu
    Copy the full SHA
    ac4d261 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    865ab5f View commit details
    Browse the repository at this point in the history
  5. Extend the logic for linux

    The machine id is looked in "canonical" locations. If not value is found, one is generated and persisted.
    The machine id is looked in:
      - the file pointed by the `MACHINE_ID_FILE` env var
      - `/var/lib/dbus/machine-id`
      - `/etc/machine-id`
      - `$HOME/.config/machine-id`
    
    If no such file is found, a random uuid is generated and persisted in the first
    writable file among `$MACHINE_ID_FILE`, `/var/lib/dbus/machine-id`, `/etc/machine-id`, `$HOME/.config/machine-id`.
    
    If there is an error reading _all_ the files an empty string is returned.
    
    The logic implemented is a variation of the one described in #5 (comment)
    panta committed Dec 30, 2020
    Configuration menu
    Copy the full SHA
    c2fe0d5 View commit details
    Browse the repository at this point in the history
  6. Update README.md

    panta committed Dec 30, 2020
    Configuration menu
    Copy the full SHA
    9f7240f View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    dbdde20 View commit details
    Browse the repository at this point in the history
  8. support for cron on darwin os

    DZariusz authored and panta committed Dec 30, 2020
    Configuration menu
    Copy the full SHA
    dd5292c View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2021

  1. Fix random uuid usage

    shawn-ogg authored Mar 21, 2021
    Configuration menu
    Copy the full SHA
    0eb1a0e View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2022

  1. Merge pull request #1 from shawn-ogg/patch-1

    Fix random uuid filename reference under linux.
    panta authored Sep 26, 2022
    Configuration menu
    Copy the full SHA
    c77705a View commit details
    Browse the repository at this point in the history
Loading