# File lib/bundler/definition.rb, line 387
    def to_lock
      require "bundler/lockfile_generator"
      LockfileGenerator.generate(self)
    end