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: isaacs/node-tar
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.0.2
Choose a base ref
...
head repository: isaacs/node-tar
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5.0.4
Choose a head ref
  • 4 commits
  • 6 files changed
  • 1 contributor

Commits on Oct 5, 2019

  1. Set more portable 'mode' value in portable mode

    Fix #235
    
    The `mode` value in `portable` mode will be set to a reasonable default
    across Unix systems.
    
    First, the user must always have read and write permissions.  (Ie, a
    mode of 0o044 becomes 0o644.)
    
    Next, the mode is masked against 0o022.  (Ie, a file of 0o777 becomes
    0o755.  0o666 becomes 0o644.)
    
    In practice, this means that all entries will usually have a mode of
    either 0644 or 0o755, depending on whether the executable bit was set.
    
    This avoids a situation where an archive created on a system with a
    umask of 0o2 creates an archive with files having modes 0o775 and 0o664,
    whereas an archive created on a system with a umask of 0o22 creates an
    archive with files having modes 0o755 and 0o644, for the same content.
    (Especially, for a check-out of the same git repository.)  Without this
    consistency, it's impossible to honor the contract that the same content
    will produce the same archive, which is necessary for npm to create
    reprodicible build artifacts that match both in CI and development.
    
    This unfortunately still does not address windows, where the executable
    bit is never set on files.  (This bit the mocha project when a publish
    from a Windows machine did not archive binaries with executable flags
    set: #210 (comment))
    isaacs committed Oct 5, 2019
    Configuration menu
    Copy the full SHA
    5e8dfa4 View commit details
    Browse the repository at this point in the history
  2. 5.0.3

    isaacs committed Oct 5, 2019
    Configuration menu
    Copy the full SHA
    16d07b2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    48e5716 View commit details
    Browse the repository at this point in the history
  4. 5.0.4

    isaacs committed Oct 5, 2019
    Configuration menu
    Copy the full SHA
    58668c6 View commit details
    Browse the repository at this point in the history
Loading