Skip to content

Commit

Permalink
feat: opam support for project.opam.locked files
Browse files Browse the repository at this point in the history
Close #1085
  • Loading branch information
erikmd committed Mar 5, 2022
1 parent 3043cd3 commit 8079b5a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/strategies/ocaml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,17 @@ export class OCaml extends BaseStrategy {
});
});

const opamLockedPaths = await this.github.findFilesByExtension('opam.locked', this.path);
opamLockedPaths.filter(notEsyLock).forEach(path => {
updates.push({
path: this.addPath(path),
createIfMissing: false,
updater: new Opam({
version,
}),
});
});

updates.push({
path: this.addPath('dune-project'),
createIfMissing: false,
Expand Down

0 comments on commit 8079b5a

Please sign in to comment.