Skip to content
Snippets Groups Projects
  1. Jan 24, 2024
  2. Jan 16, 2024
  3. Jan 08, 2024
  4. Dec 05, 2023
  5. Dec 04, 2023
  6. Dec 03, 2023
  7. Nov 27, 2023
  8. Nov 20, 2023
  9. Nov 17, 2023
  10. Oct 09, 2023
  11. Oct 05, 2023
    • Antoine Lambert's avatar
      directory: Fix a couple of edge case issues in checkout_repository_ref · 2e2e0fc1
      Antoine Lambert authored
      Ensure to remove trailing slash in git URL when computing its basename
      as an empty string is returned otherwise.
      
      When a shallow fetch failed, typically when the ref is a commit short
      hash, retry a full fetch in order for ref checkout to succeed.
      
      Related to #4751.
      v2.7.1
      2e2e0fc1
    • Antoine Lambert's avatar
      directory: Align process to checkout a remote git ref with guix one · 299aea82
      Antoine Lambert authored
      It has been observed that the process used by SWH to checkout a remote
      git reference can lead to different recursive nar hash values compared
      to those computed by guix. This seems related to CR/LF normalization.
      
      So prefer to align the process to checkout a remote git reference with
      the one used by guix. It seems also faster than the previous approach.
      
      Also refine the not found repository detection process as previously
      some non related git errors could be missed.
      
      Related to #4751.
      v2.7.0
      299aea82
  12. Sep 18, 2023
    • Antoine Lambert's avatar
      directory: Refine the way submodules are handled · f9c18e78
      Antoine Lambert authored
      The git directory loader is used to archive guix source packages where
      source code is located in a git repository at a specific reference.
      
      To ensure SWH archives the exact same set of source code files for a
      guix package, the recursive NAR hash of the source code directory is
      computed and compared against the one computed by guix.
      
      Previously the loader was always fetching git submodules if some were
      set for the git repository but guix only fetch those for a couple of
      packages and not for all git based ones. This could result in directory
      hash mismatch when the loader fetches the submodules while it should
      have not.
      
      In order to woraround this, first compute the NAR hash without fetching
      submodules and if this results in a directory hash mismatch then retry
      the operation with the submodules fetched.
      
      Related to #4751.
      v2.6.2
      f9c18e78
  13. Aug 24, 2023
  14. Aug 22, 2023
  15. Aug 21, 2023
    • Antoine R. Dumont's avatar
      directory: Use treeless cloning to make the cloning step faster · d31997e0
      Antoine R. Dumont authored
      Inspired from the pip cloning step [1]. This makes the cloning steps only fetch the
      commit information and the tree at the current heads. Then a subsequent
      switch (checkout) retrieves the tree at the reference we want. In effect, this retrieves
      way faster the necessary tree needed to ingest the repository.
      
      [1] it uses a blobless cloning though.
      v2.6.0
      d31997e0
  16. Aug 07, 2023
  17. Jul 03, 2023
    • Antoine Lambert's avatar
      loader: Ensure NotFound exception is reraised when caught · 3b18c155
      Antoine Lambert authored
      Previous commit modified the dumb.check_protocol function to raise an
      HTTPError exception when the request to check dumb protocol support
      failed. As NotFound exception inherits from ValueError, the code for
      checking dumb protocol support was executed even when a repository was
      not found. So an HTTPError exception was raised with a 404 status code
      and the NotFound exception was no longer propagated to the base loader
      class, resulting in a failed visit status instead of a not_found one.
      v2.5.2
      3b18c155
  18. Jun 14, 2023
  19. Jun 09, 2023
  20. Jun 07, 2023
  21. Jun 06, 2023
  22. Jun 05, 2023
Loading